Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/getopt.c

    rba29018 rf538ef3  
    4949int     optopt = '?';           /* character checked for validity */
    5050int     optreset;               /* reset getopt */
    51 char    *optarg;                /* argument associated with option */
     51const char *optarg;             /* argument associated with option */
    5252
    5353
     
    6767#define INORDER (int)1
    6868
    69 static char EMSG[] = "";
     69#define EMSG    ""
    7070
    7171static int getopt_internal(int, char **, const char *);
     
    7373static void permute_args(int, int, int, char **);
    7474
    75 static char *place = EMSG; /* option letter processing */
     75static const char *place = EMSG; /* option letter processing */
    7676
    7777/* XXX: set optreset to 1 rather than these two */
     
    336336        if (retval == -2) {
    337337                char *current_argv;
    338                 char *has_equal;
     338                const char *has_equal;
    339339                size_t current_argv_len;
    340340                int i, ambiguous, match;
Note: See TracChangeset for help on using the changeset viewer.