diff options
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r-- | util-linux/getopt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 4861990dd..74e7235ea 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -55,7 +55,7 @@ static int alternative; /* 0 is getopt_long, 1 is getopt_long_only */ | |||
55 | 55 | ||
56 | /* Function prototypes */ | 56 | /* Function prototypes */ |
57 | static const char *normalize(const char *arg); | 57 | static const char *normalize(const char *arg); |
58 | static int generate_output(char * argv[],int argc,const char *optstr, | 58 | static int generate_output(char **argv,int argc,const char *optstr, |
59 | const struct option *longopts); | 59 | const struct option *longopts); |
60 | static void add_long_options(char *options); | 60 | static void add_long_options(char *options); |
61 | static void add_longopt(const char *name,int has_arg); | 61 | static void add_longopt(const char *name,int has_arg); |
@@ -133,7 +133,7 @@ const char *normalize(const char *arg) | |||
133 | * optstr must contain the short options, and longopts the long options. | 133 | * optstr must contain the short options, and longopts the long options. |
134 | * Other settings are found in global variables. | 134 | * Other settings are found in global variables. |
135 | */ | 135 | */ |
136 | int generate_output(char * argv[],int argc,const char *optstr, | 136 | int generate_output(char **argv,int argc,const char *optstr, |
137 | const struct option *longopts) | 137 | const struct option *longopts) |
138 | { | 138 | { |
139 | int exit_code = 0; /* We assume everything will be OK */ | 139 | int exit_code = 0; /* We assume everything will be OK */ |
@@ -288,8 +288,8 @@ static const struct option longopts[]= | |||
288 | static const char shortopts[]="+ao:l:n:qQs:Tu"; | 288 | static const char shortopts[]="+ao:l:n:qQs:Tu"; |
289 | 289 | ||
290 | 290 | ||
291 | int getopt_main(int argc, char *argv[]); | 291 | int getopt_main(int argc, char **argv); |
292 | int getopt_main(int argc, char *argv[]) | 292 | int getopt_main(int argc, char **argv) |
293 | { | 293 | { |
294 | const char *optstr = NULL; | 294 | const char *optstr = NULL; |
295 | char *name = NULL; | 295 | char *name = NULL; |