Changeset 8a3768b
- Timestamp:
- May 24, 2010, 8:22:54 PM (15 years ago)
- Branches:
- release-1.6
- Children:
- 4be3c76
- Parents:
- 258a3bf
- git-author:
- Anders Kaseorg <andersk@mit.edu> (05/13/10 15:08:09)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/24/10 20:22:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r935b8d8 r8a3768b 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.