Changeset 447435a for commands.c
- Timestamp:
- May 13, 2010, 3:26:47 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 9ed1278
- Parents:
- ff426f9
- git-author:
- Anders Kaseorg <andersk@mit.edu> (05/13/10 15:08:09)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (05/13/10 15:26:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
re54a746 r447435a 1294 1294 char opt; 1295 1295 int instance = 0, related = 0, i; 1296 c har **tmp_argv = owl_malloc(sizeof(char *) * argc);1296 const char **tmp_argv = owl_malloc(sizeof(char *) * argc); 1297 1297 1298 1298 for (i = 0; i < argc; i++) 1299 1299 tmp_argv[i] = argv[i]; 1300 1300 1301 static struct option options[] = {1301 static const struct option options[] = { 1302 1302 {"instance", 0, 0, 'i'}, 1303 1303 {"related", 0, 0, 'r'}, … … 1305 1305 1306 1306 optind = 0; 1307 while ((opt = getopt_long(argc, tmp_argv, "ir", options, NULL)) != -1) {1307 while ((opt = getopt_long(argc, (char **)tmp_argv, "ir", options, NULL)) != -1) { 1308 1308 switch (opt) { 1309 1309 case 'i':
Note: See TracChangeset
for help on using the changeset viewer.