aboutsummaryrefslogtreecommitdiff
path: root/util-linux/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r--util-linux/getopt.c8
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 */
57static const char *normalize(const char *arg); 57static const char *normalize(const char *arg);
58static int generate_output(char * argv[],int argc,const char *optstr, 58static int generate_output(char **argv,int argc,const char *optstr,
59 const struct option *longopts); 59 const struct option *longopts);
60static void add_long_options(char *options); 60static void add_long_options(char *options);
61static void add_longopt(const char *name,int has_arg); 61static 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 */
136int generate_output(char * argv[],int argc,const char *optstr, 136int 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[]=
288static const char shortopts[]="+ao:l:n:qQs:Tu"; 288static const char shortopts[]="+ao:l:n:qQs:Tu";
289 289
290 290
291int getopt_main(int argc, char *argv[]); 291int getopt_main(int argc, char **argv);
292int getopt_main(int argc, char *argv[]) 292int 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;