summaryrefslogtreecommitdiff
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 0bbc306..820b837 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -13,8 +13,8 @@
#include <unistd.h>
#include <sys/klog.h>
-int dmesg_main(int argc, char *argv[]);
-int dmesg_main(int argc, char *argv[])
+int dmesg_main(int argc, char **argv);
+int dmesg_main(int argc, char **argv)
{
char *size, *level;
int flags = getopt32(argc, argv, "cs:n:", &size, &level);
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;
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index f9f067d..6ff49fc 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -230,8 +230,8 @@ static void find_dev(char *path)
closedir(dir);
}
-int mdev_main(int argc, char *argv[]);
-int mdev_main(int argc, char *argv[])
+int mdev_main(int argc, char **argv);
+int mdev_main(int argc, char **argv)
{
char *action;
char *env_path;
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index ac894d5..a84792c 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -8,8 +8,8 @@
#include "busybox.h"
-int mkswap_main(int argc, char *argv[]);
-int mkswap_main(int argc, char *argv[])
+int mkswap_main(int argc, char **argv);
+int mkswap_main(int argc, char **argv)
{
int fd, pagesize;
off_t len;
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 5a01fd6..43c2a69 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -63,8 +63,8 @@ static void delete_contents(const char *directory)
} else unlink(directory);
}
-int switch_root_main(int argc, char *argv[]);
-int switch_root_main(int argc, char *argv[])
+int switch_root_main(int argc, char **argv);
+int switch_root_main(int argc, char **argv)
{
char *newroot, *console=NULL;
struct stat st1, st2;