Changes in uspace/lib/c/generic/getopt.c [f538ef3:ba29018] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/getopt.c
rf538ef3 rba29018 49 49 int optopt = '?'; /* character checked for validity */ 50 50 int optreset; /* reset getopt */ 51 c onst char*optarg; /* argument associated with option */51 char *optarg; /* argument associated with option */ 52 52 53 53 … … 67 67 #define INORDER (int)1 68 68 69 #define EMSG "" 69 static char EMSG[] = ""; 70 70 71 71 static int getopt_internal(int, char **, const char *); … … 73 73 static void permute_args(int, int, int, char **); 74 74 75 static c onst char *place = EMSG; /* option letter processing */75 static char *place = EMSG; /* option letter processing */ 76 76 77 77 /* XXX: set optreset to 1 rather than these two */ … … 336 336 if (retval == -2) { 337 337 char *current_argv; 338 c onst char *has_equal;338 char *has_equal; 339 339 size_t current_argv_len; 340 340 int i, ambiguous, match;
Note:
See TracChangeset
for help on using the changeset viewer.