- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"

This commit is contained in:
Bernhard Reutner-Fischer
2007-04-04 20:52:03 +00:00
parent d9c2d5fe4f
commit febe3c4211
33 changed files with 67 additions and 67 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;