diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-04 20:52:03 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-04 20:52:03 +0000 |
| commit | febe3c421109032cdfb36249c54e314d39256ace (patch) | |
| tree | 5bf5f4b36eadcff8d4e707d4f46e85c590a53436 /util-linux | |
| parent | d9c2d5fe4ffeedeadc26c1ee64247c72cdbd064a (diff) | |
| download | busybox-w32-febe3c421109032cdfb36249c54e314d39256ace.tar.gz busybox-w32-febe3c421109032cdfb36249c54e314d39256ace.tar.bz2 busybox-w32-febe3c421109032cdfb36249c54e314d39256ace.zip | |
- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/dmesg.c | 4 | ||||
| -rw-r--r-- | util-linux/getopt.c | 8 | ||||
| -rw-r--r-- | util-linux/mdev.c | 4 | ||||
| -rw-r--r-- | util-linux/mkswap.c | 4 | ||||
| -rw-r--r-- | util-linux/switch_root.c | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 0bbc306fc..820b837c9 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
| @@ -13,8 +13,8 @@ | |||
| 13 | #include <unistd.h> | 13 | #include <unistd.h> |
| 14 | #include <sys/klog.h> | 14 | #include <sys/klog.h> |
| 15 | 15 | ||
| 16 | int dmesg_main(int argc, char *argv[]); | 16 | int dmesg_main(int argc, char **argv); |
| 17 | int dmesg_main(int argc, char *argv[]) | 17 | int dmesg_main(int argc, char **argv) |
| 18 | { | 18 | { |
| 19 | char *size, *level; | 19 | char *size, *level; |
| 20 | int flags = getopt32(argc, argv, "cs:n:", &size, &level); | 20 | int flags = getopt32(argc, argv, "cs:n:", &size, &level); |
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; |
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index f9f067dfe..6ff49fc01 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
| @@ -230,8 +230,8 @@ static void find_dev(char *path) | |||
| 230 | closedir(dir); | 230 | closedir(dir); |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | int mdev_main(int argc, char *argv[]); | 233 | int mdev_main(int argc, char **argv); |
| 234 | int mdev_main(int argc, char *argv[]) | 234 | int mdev_main(int argc, char **argv) |
| 235 | { | 235 | { |
| 236 | char *action; | 236 | char *action; |
| 237 | char *env_path; | 237 | char *env_path; |
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index ac894d50a..a84792c66 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c | |||
| @@ -8,8 +8,8 @@ | |||
| 8 | 8 | ||
| 9 | #include "busybox.h" | 9 | #include "busybox.h" |
| 10 | 10 | ||
| 11 | int mkswap_main(int argc, char *argv[]); | 11 | int mkswap_main(int argc, char **argv); |
| 12 | int mkswap_main(int argc, char *argv[]) | 12 | int mkswap_main(int argc, char **argv) |
| 13 | { | 13 | { |
| 14 | int fd, pagesize; | 14 | int fd, pagesize; |
| 15 | off_t len; | 15 | off_t len; |
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 5a01fd6f7..43c2a6991 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
| @@ -63,8 +63,8 @@ static void delete_contents(const char *directory) | |||
| 63 | } else unlink(directory); | 63 | } else unlink(directory); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | int switch_root_main(int argc, char *argv[]); | 66 | int switch_root_main(int argc, char **argv); |
| 67 | int switch_root_main(int argc, char *argv[]) | 67 | int switch_root_main(int argc, char **argv) |
| 68 | { | 68 | { |
| 69 | char *newroot, *console=NULL; | 69 | char *newroot, *console=NULL; |
| 70 | struct stat st1, st2; | 70 | struct stat st1, st2; |
