aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c4
-rw-r--r--util-linux/getopt.c8
-rw-r--r--util-linux/mdev.c4
-rw-r--r--util-linux/mkswap.c4
-rw-r--r--util-linux/switch_root.c4
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
16int dmesg_main(int argc, char *argv[]); 16int dmesg_main(int argc, char **argv);
17int dmesg_main(int argc, char *argv[]) 17int 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 */
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;
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
233int mdev_main(int argc, char *argv[]); 233int mdev_main(int argc, char **argv);
234int mdev_main(int argc, char *argv[]) 234int 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
11int mkswap_main(int argc, char *argv[]); 11int mkswap_main(int argc, char **argv);
12int mkswap_main(int argc, char *argv[]) 12int 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
66int switch_root_main(int argc, char *argv[]); 66int switch_root_main(int argc, char **argv);
67int switch_root_main(int argc, char *argv[]) 67int 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;