- 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

@ -11,7 +11,7 @@ const char *applet_name;
#include <stdlib.h> #include <stdlib.h>
#include "usage.h" #include "usage.h"
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
applet_name = argv[0]; applet_name = argv[0];

View File

@ -719,7 +719,7 @@ static char * const bunzip_errors[]={NULL,"Bad file checksum","Not bzip data",
"Out of memory","Obsolete (pre 0.9.5) bzip format not supported."}; "Out of memory","Obsolete (pre 0.9.5) bzip format not supported."};
/* Dumb little test thing, decompress stdin to stdout */ /* Dumb little test thing, decompress stdin to stdout */
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
int i=uncompressStream(0,1); int i=uncompressStream(0,1);
char c; char c;

View File

@ -15,8 +15,8 @@
/* From <linux/vt.h> */ /* From <linux/vt.h> */
enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
int deallocvt_main(int argc, char *argv[]); int deallocvt_main(int argc, char **argv);
int deallocvt_main(int argc, char *argv[]) int deallocvt_main(int argc, char **argv)
{ {
/* num = 0 deallocate all unused consoles */ /* num = 0 deallocate all unused consoles */
int num = 0; int num = 0;

View File

@ -82,8 +82,8 @@ static int convert(char *fn)
return 0; return 0;
} }
int dos2unix_main(int argc, char *argv[]); int dos2unix_main(int argc, char **argv);
int dos2unix_main(int argc, char *argv[]) int dos2unix_main(int argc, char **argv)
{ {
int o; int o;

View File

@ -1032,7 +1032,7 @@ static void compile_fs_type(char *fs_type)
} }
} }
static void parse_args(int argc, char *argv[]) static void parse_args(int argc, char **argv)
{ {
int i, j; int i, j;
char *arg, *tmp; char *arg, *tmp;
@ -1158,8 +1158,8 @@ static void signal_cancel(int sig ATTRIBUTE_UNUSED)
cancel_requested = 1; cancel_requested = 1;
} }
int fsck_main(int argc, char *argv[]); int fsck_main(int argc, char **argv);
int fsck_main(int argc, char *argv[]) int fsck_main(int argc, char **argv)
{ {
int i, status = 0; int i, status = 0;
int interactive; int interactive;

View File

@ -13001,7 +13001,7 @@ static void parse_extended_opts(e2fsck_t ctx, const char *opts)
} }
static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx) static errcode_t PRS(int argc, char **argv, e2fsck_t *ret_ctx)
{ {
int flush = 0; int flush = 0;
int c, fd; int c, fd;
@ -13202,8 +13202,8 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
static const char my_ver_string[] = E2FSPROGS_VERSION; static const char my_ver_string[] = E2FSPROGS_VERSION;
static const char my_ver_date[] = E2FSPROGS_DATE; static const char my_ver_date[] = E2FSPROGS_DATE;
int e2fsck_main (int argc, char *argv[]); int e2fsck_main (int argc, char **argv);
int e2fsck_main (int argc, char *argv[]) int e2fsck_main (int argc, char **argv)
{ {
errcode_t retval; errcode_t retval;
int exit_value = EXIT_OK; int exit_value = EXIT_OK;

View File

@ -1171,7 +1171,7 @@ static void signal_cancel(int sig FSCK_ATTR((unused)))
cancel_requested++; cancel_requested++;
} }
static void PRS(int argc, char *argv[]) static void PRS(int argc, char **argv)
{ {
int i, j; int i, j;
char *arg, *dev, *tmp = 0; char *arg, *dev, *tmp = 0;
@ -1321,8 +1321,8 @@ static void PRS(int argc, char *argv[])
max_running = atoi(tmp); max_running = atoi(tmp);
} }
int fsck_main(int argc, char *argv[]); int fsck_main(int argc, char **argv);
int fsck_main(int argc, char *argv[]) int fsck_main(int argc, char **argv)
{ {
int i, status = 0; int i, status = 0;
int interactive = 0; int interactive = 0;

View File

@ -787,7 +787,7 @@ static __u32 ok_features[3] = {
EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER /* R/O compat */ EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER /* R/O compat */
}; };
static int PRS(int argc, char *argv[]) static int PRS(int argc, char **argv)
{ {
int c; int c;
int size; int size;
@ -1175,8 +1175,8 @@ static void mke2fs_clean_up(void)
if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device); if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device);
} }
int mke2fs_main (int argc, char *argv[]); int mke2fs_main (int argc, char **argv);
int mke2fs_main (int argc, char *argv[]) int mke2fs_main (int argc, char **argv)
{ {
errcode_t retval; errcode_t retval;
ext2_filsys fs; ext2_filsys fs;

View File

@ -396,7 +396,7 @@ int grep_main(int argc, char **argv)
invert_search = ((option_mask32 & OPT_v) != 0); /* 0 | 1 */ invert_search = ((option_mask32 & OPT_v) != 0); /* 0 | 1 */
if (pattern_head != NULL) { if (pattern_head != NULL) {
/* convert char *argv[] to grep_list_data_t */ /* convert char **argv to grep_list_data_t */
llist_t *cur; llist_t *cur;
for (cur = pattern_head; cur; cur = cur->link) for (cur = pattern_head; cur; cur = cur->link)

View File

@ -10,8 +10,8 @@
#include "busybox.h" #include "busybox.h"
#include <sys/reboot.h> #include <sys/reboot.h>
int halt_main(int argc, char *argv[]); int halt_main(int argc, char **argv);
int halt_main(int argc, char *argv[]) int halt_main(int argc, char **argv)
{ {
static const int magic[] = { static const int magic[] = {
#ifdef RB_HALT_SYSTEM #ifdef RB_HALT_SYSTEM

View File

@ -15,8 +15,8 @@
#define S_IWGRP_OR_S_IWOTH (S_IWGRP | S_IWOTH) #define S_IWGRP_OR_S_IWOTH (S_IWGRP | S_IWOTH)
#endif #endif
int mesg_main(int argc, char *argv[]); int mesg_main(int argc, char **argv);
int mesg_main(int argc, char *argv[]) int mesg_main(int argc, char **argv)
{ {
struct stat sb; struct stat sb;
const char *tty; const char *tty;

View File

@ -729,8 +729,8 @@ static init_func* init_functions[] = {
init_cr, init_cr,
}; };
int nmeter_main(int argc, char* argv[]); int nmeter_main(int argc, char **argv);
int nmeter_main(int argc, char* argv[]) int nmeter_main(int argc, char **argv)
{ {
char buf[32]; char buf[32];
s_stat *first = NULL; s_stat *first = NULL;

View File

@ -18,8 +18,8 @@
#include <time.h> #include <time.h>
#include <stdlib.h> #include <stdlib.h>
int runlevel_main(int argc, char *argv[]); int runlevel_main(int argc, char **argv);
int runlevel_main(int argc, char *argv[]) int runlevel_main(int argc, char **argv)
{ {
struct utmp *ut; struct utmp *ut;
char prev; char prev;

View File

@ -16,8 +16,8 @@
#include "busybox.h" #include "busybox.h"
int setsid_main(int argc, char *argv[]); int setsid_main(int argc, char **argv);
int setsid_main(int argc, char *argv[]) int setsid_main(int argc, char **argv)
{ {
if (argc < 2) if (argc < 2)
bb_show_usage(); bb_show_usage();

View File

@ -105,8 +105,8 @@ static inline void get_dest_addr(const char *arg, struct ether_addr *eaddr);
static inline int get_fill(unsigned char *pkt, struct ether_addr *eaddr, int broadcast); static inline int get_fill(unsigned char *pkt, struct ether_addr *eaddr, int broadcast);
static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd); static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd);
int ether_wake_main(int argc, char *argv[]); int ether_wake_main(int argc, char **argv);
int ether_wake_main(int argc, char *argv[]) int ether_wake_main(int argc, char **argv)
{ {
const char *ifname = "eth0"; const char *ifname = "eth0";
char *pass = NULL; char *pass = NULL;

View File

@ -1939,8 +1939,8 @@ enum {
}; };
int httpd_main(int argc, char *argv[]); int httpd_main(int argc, char **argv);
int httpd_main(int argc, char *argv[]) int httpd_main(int argc, char **argv)
{ {
unsigned opt; unsigned opt;
const char *home_httpd = home; const char *home_httpd = home;

View File

@ -1248,8 +1248,8 @@ inetd_setproctitle(char *a, int s)
#endif #endif
int inetd_main(int argc, char *argv[]); int inetd_main(int argc, char **argv);
int inetd_main(int argc, char *argv[]) int inetd_main(int argc, char **argv)
{ {
servtab_t *sep; servtab_t *sep;
struct passwd *pwd; struct passwd *pwd;

View File

@ -915,8 +915,8 @@ getaddr(uint32_t *ap, const char *host)
#endif #endif
int traceroute_main(int argc, char *argv[]); int traceroute_main(int argc, char **argv);
int traceroute_main(int argc, char *argv[]) int traceroute_main(int argc, char **argv)
{ {
int code, n; int code, n;
unsigned char *outp; unsigned char *outp;

View File

@ -132,8 +132,8 @@ static uint8_t* alloc_dhcp_option(int code, const char *str, int extra)
} }
int udhcpc_main(int argc, char *argv[]); int udhcpc_main(int argc, char **argv);
int udhcpc_main(int argc, char *argv[]) int udhcpc_main(int argc, char **argv)
{ {
uint8_t *temp, *message; uint8_t *temp, *message;
char *str_c, *str_V, *str_h, *str_F, *str_r, *str_T, *str_t; char *str_c, *str_V, *str_h, *str_F, *str_r, *str_T, *str_t;

View File

@ -21,8 +21,8 @@ struct dhcpOfferedAddr *leases;
struct server_config_t server_config; struct server_config_t server_config;
int udhcpd_main(int argc, char *argv[]); int udhcpd_main(int argc, char **argv);
int udhcpd_main(int argc, char *argv[]) int udhcpd_main(int argc, char **argv)
{ {
fd_set rfds; fd_set rfds;
struct timeval tv; struct timeval tv;

View File

@ -7,8 +7,8 @@
#include "common.h" #include "common.h"
#include "dhcpd.h" #include "dhcpd.h"
int dumpleases_main(int argc, char *argv[]); int dumpleases_main(int argc, char **argv);
int dumpleases_main(int argc, char *argv[]) int dumpleases_main(int argc, char **argv)
{ {
int fd; int fd;
int i; int i;

View File

@ -159,8 +159,8 @@ static unsigned ATTRIBUTE_ALWAYS_INLINE ms_rdelay(unsigned secs)
/** /**
* main program * main program
*/ */
int zcip_main(int argc, char *argv[]); int zcip_main(int argc, char **argv);
int zcip_main(int argc, char *argv[]) int zcip_main(int argc, char **argv)
{ {
int state = PROBE; int state = PROBE;
struct ether_addr eth_addr; struct ether_addr eth_addr;

View File

@ -331,7 +331,7 @@ void parse_file(FILE *infile)
} }
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
FILE * infile; FILE * infile;
if (argc != 3) { if (argc != 3) {

View File

@ -386,7 +386,7 @@ void traps(void)
*/ */
} }
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
traps(); traps();

View File

@ -120,8 +120,8 @@ static struct option chcon_options[] = {
}; };
#endif #endif
int chcon_main(int argc, char *argv[]); int chcon_main(int argc, char **argv);
int chcon_main(int argc, char *argv[]) int chcon_main(int argc, char **argv)
{ {
char *reference_file; char *reference_file;
char *fname; char *fname;

View File

@ -5,8 +5,8 @@
*/ */
#include "busybox.h" #include "busybox.h"
int load_policy_main(int argc, char *argv[]); int load_policy_main(int argc, char **argv);
int load_policy_main(int argc, char *argv[]) int load_policy_main(int argc, char **argv)
{ {
int fd; int fd;
struct stat st; struct stat st;

View File

@ -87,8 +87,8 @@ static const struct option runcon_options[] = {
#define OPTS_HELP (1<<5) /* h */ #define OPTS_HELP (1<<5) /* h */
#define OPTS_CONTEXT_COMPONENT (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE) #define OPTS_CONTEXT_COMPONENT (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE)
int runcon_main(int argc, char *argv[]); int runcon_main(int argc, char **argv);
int runcon_main(int argc, char *argv[]) int runcon_main(int argc, char **argv)
{ {
char *role = NULL; char *role = NULL;
char *range = NULL; char *range = NULL;

View File

@ -198,8 +198,8 @@ static void handle(char *command)
} }
} }
int bbsh_main(int argc, char *argv[]); int bbsh_main(int argc, char **argv);
int bbsh_main(int argc, char *argv[]) int bbsh_main(int argc, char **argv)
{ {
char *command=NULL; char *command=NULL;
FILE *f; FILE *f;

View File

@ -13,8 +13,8 @@
#include <unistd.h> #include <unistd.h>
#include <sys/klog.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; char *size, *level;
int flags = getopt32(argc, argv, "cs:n:", &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 */ /* Function prototypes */
static const char *normalize(const char *arg); 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); const struct option *longopts);
static void add_long_options(char *options); static void add_long_options(char *options);
static void add_longopt(const char *name,int has_arg); 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. * optstr must contain the short options, and longopts the long options.
* Other settings are found in global variables. * 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) const struct option *longopts)
{ {
int exit_code = 0; /* We assume everything will be OK */ 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"; 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; const char *optstr = NULL;
char *name = NULL; char *name = NULL;

View File

@ -230,8 +230,8 @@ static void find_dev(char *path)
closedir(dir); 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 *action;
char *env_path; char *env_path;

View File

@ -8,8 +8,8 @@
#include "busybox.h" #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; int fd, pagesize;
off_t len; off_t len;

View File

@ -63,8 +63,8 @@ static void delete_contents(const char *directory)
} else unlink(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; char *newroot, *console=NULL;
struct stat st1, st2; struct stat st1, st2;