Changeset ba29018 in mainline
- Timestamp:
- 2018-01-15T21:40:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c718bda
- Parents:
- 39330200
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/getopt.c
r39330200 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; -
uspace/lib/c/include/getopt.h
r39330200 rba29018 57 57 58 58 /* HelenOS Port - These need to be exposed for legacy getopt() */ 59 extern c onst char *optarg;59 extern char *optarg; 60 60 extern int optind, opterr, optopt; 61 61 extern int optreset;
Note:
See TracChangeset
for help on using the changeset viewer.