- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
This commit is contained in:
parent
d9c2d5fe4f
commit
febe3c4211
@ -11,7 +11,7 @@ const char *applet_name;
|
||||
#include <stdlib.h>
|
||||
#include "usage.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
applet_name = argv[0];
|
||||
|
||||
|
@ -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."};
|
||||
|
||||
/* 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);
|
||||
char c;
|
||||
|
@ -15,8 +15,8 @@
|
||||
/* From <linux/vt.h> */
|
||||
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 */
|
||||
int num = 0;
|
||||
|
@ -82,8 +82,8 @@ static int convert(char *fn)
|
||||
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;
|
||||
|
||||
|
@ -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;
|
||||
char *arg, *tmp;
|
||||
@ -1158,8 +1158,8 @@ static void signal_cancel(int sig ATTRIBUTE_UNUSED)
|
||||
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 interactive;
|
||||
|
@ -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 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_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;
|
||||
int exit_value = EXIT_OK;
|
||||
|
@ -1171,7 +1171,7 @@ static void signal_cancel(int sig FSCK_ATTR((unused)))
|
||||
cancel_requested++;
|
||||
}
|
||||
|
||||
static void PRS(int argc, char *argv[])
|
||||
static void PRS(int argc, char **argv)
|
||||
{
|
||||
int i, j;
|
||||
char *arg, *dev, *tmp = 0;
|
||||
@ -1321,8 +1321,8 @@ static void PRS(int argc, char *argv[])
|
||||
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 interactive = 0;
|
||||
|
@ -787,7 +787,7 @@ static __u32 ok_features[3] = {
|
||||
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 size;
|
||||
@ -1175,8 +1175,8 @@ static void mke2fs_clean_up(void)
|
||||
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;
|
||||
ext2_filsys fs;
|
||||
|
@ -396,7 +396,7 @@ int grep_main(int argc, char **argv)
|
||||
invert_search = ((option_mask32 & OPT_v) != 0); /* 0 | 1 */
|
||||
|
||||
if (pattern_head != NULL) {
|
||||
/* convert char *argv[] to grep_list_data_t */
|
||||
/* convert char **argv to grep_list_data_t */
|
||||
llist_t *cur;
|
||||
|
||||
for (cur = pattern_head; cur; cur = cur->link)
|
||||
|
@ -10,8 +10,8 @@
|
||||
#include "busybox.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[] = {
|
||||
#ifdef RB_HALT_SYSTEM
|
||||
|
@ -15,8 +15,8 @@
|
||||
#define S_IWGRP_OR_S_IWOTH (S_IWGRP | S_IWOTH)
|
||||
#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;
|
||||
const char *tty;
|
||||
|
@ -729,8 +729,8 @@ static init_func* init_functions[] = {
|
||||
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];
|
||||
s_stat *first = NULL;
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include <time.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;
|
||||
char prev;
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
#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)
|
||||
bb_show_usage();
|
||||
|
@ -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_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";
|
||||
char *pass = NULL;
|
||||
|
@ -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;
|
||||
const char *home_httpd = home;
|
||||
|
@ -1248,8 +1248,8 @@ inetd_setproctitle(char *a, int s)
|
||||
#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;
|
||||
struct passwd *pwd;
|
||||
|
@ -915,8 +915,8 @@ getaddr(uint32_t *ap, const char *host)
|
||||
#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;
|
||||
unsigned char *outp;
|
||||
|
@ -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;
|
||||
char *str_c, *str_V, *str_h, *str_F, *str_r, *str_T, *str_t;
|
||||
|
@ -21,8 +21,8 @@ struct dhcpOfferedAddr *leases;
|
||||
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;
|
||||
struct timeval tv;
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include "common.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 i;
|
||||
|
@ -159,8 +159,8 @@ static unsigned ATTRIBUTE_ALWAYS_INLINE ms_rdelay(unsigned secs)
|
||||
/**
|
||||
* 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;
|
||||
struct ether_addr eth_addr;
|
||||
|
@ -331,7 +331,7 @@ void parse_file(FILE *infile)
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
FILE * infile;
|
||||
if (argc != 3) {
|
||||
|
@ -386,7 +386,7 @@ void traps(void)
|
||||
*/
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
traps();
|
||||
|
||||
|
@ -120,8 +120,8 @@ static struct option chcon_options[] = {
|
||||
};
|
||||
#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 *fname;
|
||||
|
@ -5,8 +5,8 @@
|
||||
*/
|
||||
#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;
|
||||
struct stat st;
|
||||
|
@ -87,8 +87,8 @@ static const struct option runcon_options[] = {
|
||||
#define OPTS_HELP (1<<5) /* h */
|
||||
#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 *range = NULL;
|
||||
|
@ -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;
|
||||
FILE *f;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user