Changeset db24058 in mainline for uspace/lib/libc/generic/getopt.c
- Timestamp:
- 2009-06-30T15:53:15Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d11a7d8
- Parents:
- 6db6fd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/getopt.c
r6db6fd1 rdb24058 48 48 int optopt = '?'; /* character checked for validity */ 49 49 int optreset; /* reset getopt */ 50 c har *optarg; /* argument associated with option */50 const char *optarg; /* argument associated with option */ 51 51 52 52 … … 163 163 const char *options; 164 164 { 165 c har *oli; /* option letter list index */165 const char *oli; /* option letter list index */ 166 166 int optchar; 167 167 … … 276 276 optarg = NULL; 277 277 if (*place) /* no white space */ 278 optarg = *place;278 optarg = place; 279 279 /* XXX: disable test for :: if PC? (GNU doesn't) */ 280 280 else if (oli[1] != ':') { /* arg not optional */ … … 354 354 retval = getopt_internal(nargc, (char **)nargv, options); 355 355 if (retval == -2) { 356 char *current_argv, *has_equal; 356 char *current_argv; 357 const char *has_equal; 357 358 size_t current_argv_len; 358 359 int i, ambiguous, match;
Note:
See TracChangeset
for help on using the changeset viewer.