diff options
author | Bernhard Reutner-Fischer | 2007-04-04 20:52:03 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2007-04-04 20:52:03 +0000 |
commit | febe3c421109032cdfb36249c54e314d39256ace (patch) | |
tree | 5bf5f4b36eadcff8d4e707d4f46e85c590a53436 /util-linux/getopt.c | |
parent | d9c2d5fe4ffeedeadc26c1ee64247c72cdbd064a (diff) | |
download | busybox-febe3c421109032cdfb36249c54e314d39256ace.zip busybox-febe3c421109032cdfb36249c54e314d39256ace.tar.gz |
- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
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 4861990..74e7235 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 */ /* Function prototypes */ static const char *normalize(const char *arg); -static int generate_output(char * argv[],int argc,const char *optstr, +static int generate_output(char **argv,int argc,const char *optstr, const struct option *longopts); static void add_long_options(char *options); static void add_longopt(const char *name,int has_arg); @@ -133,7 +133,7 @@ const char *normalize(const char *arg) * optstr must contain the short options, and longopts the long options. * Other settings are found in global variables. */ -int generate_output(char * argv[],int argc,const char *optstr, +int generate_output(char **argv,int argc,const char *optstr, const struct option *longopts) { int exit_code = 0; /* We assume everything will be OK */ @@ -288,8 +288,8 @@ static const struct option longopts[]= static const char shortopts[]="+ao:l:n:qQs:Tu"; -int getopt_main(int argc, char *argv[]); -int getopt_main(int argc, char *argv[]) +int getopt_main(int argc, char **argv); +int getopt_main(int argc, char **argv) { const char *optstr = NULL; char *name = NULL; |