diff options
author | Denis Vlasenko | 2007-02-03 17:28:39 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-02-03 17:28:39 +0000 |
commit | 06af2165288cd6516b89001ec9e24992619230e0 (patch) | |
tree | 840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /miscutils | |
parent | c7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff) | |
download | busybox-06af2165288cd6516b89001ec9e24992619230e0.zip busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz |
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/adjtimex.c | 1 | ||||
-rw-r--r-- | miscutils/bbconfig.c | 1 | ||||
-rw-r--r-- | miscutils/crond.c | 1 | ||||
-rw-r--r-- | miscutils/crontab.c | 1 | ||||
-rw-r--r-- | miscutils/dc.c | 1 | ||||
-rw-r--r-- | miscutils/devfsd.c | 1 | ||||
-rw-r--r-- | miscutils/eject.c | 1 | ||||
-rw-r--r-- | miscutils/hdparm.c | 2 | ||||
-rw-r--r-- | miscutils/last.c | 1 | ||||
-rw-r--r-- | miscutils/less.c | 1 | ||||
-rw-r--r-- | miscutils/makedevs.c | 2 | ||||
-rw-r--r-- | miscutils/mountpoint.c | 1 | ||||
-rw-r--r-- | miscutils/mt.c | 1 | ||||
-rw-r--r-- | miscutils/nmeter.c | 1 | ||||
-rw-r--r-- | miscutils/raidautorun.c | 1 | ||||
-rw-r--r-- | miscutils/readahead.c | 1 | ||||
-rw-r--r-- | miscutils/runlevel.c | 1 | ||||
-rw-r--r-- | miscutils/rx.c | 1 | ||||
-rw-r--r-- | miscutils/setsid.c | 1 | ||||
-rw-r--r-- | miscutils/strings.c | 1 | ||||
-rw-r--r-- | miscutils/taskset.c | 1 | ||||
-rw-r--r-- | miscutils/time.c | 1 | ||||
-rw-r--r-- | miscutils/watchdog.c | 1 |
23 files changed, 25 insertions, 0 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index b35538a..985ee2d 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -38,6 +38,7 @@ static const char * const ret_code_descript[] = { "leap second has occurred", "clock not synchronized" }; +int adjtimex_main(int argc, char **argv); int adjtimex_main(int argc, char **argv) { enum { diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c index ce14d4a..6896506 100644 --- a/miscutils/bbconfig.c +++ b/miscutils/bbconfig.c @@ -4,6 +4,7 @@ #include "busybox.h" #include "bbconfigopts.h" +int bbconfig_main(int argc, char **argv); int bbconfig_main(int argc, char **argv) { printf(bbconfig_config); diff --git a/miscutils/crond.c b/miscutils/crond.c index aace3ee..d237a67 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -131,6 +131,7 @@ static void crondlog(const char *ctl, ...) } } +int crond_main(int ac, char **av); int crond_main(int ac, char **av) { unsigned opt; diff --git a/miscutils/crontab.c b/miscutils/crontab.c index eb7c205..02df85b 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c @@ -31,6 +31,7 @@ static void EditFile(const char *user, const char *file); static int GetReplaceStream(const char *user, const char *file); static int ChangeUser(const char *user, short dochdir); +int crontab_main(int ac, char **av); int crontab_main(int ac, char **av) { enum { NONE, EDIT, LIST, REPLACE, DELETE } option = NONE; diff --git a/miscutils/dc.c b/miscutils/dc.c index 7b64057..2121f76 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -200,6 +200,7 @@ static int number_of_tokens(char *buffer) return i; } +int dc_main(int argc, char **argv); int dc_main(int argc, char **argv) { /* take stuff from stdin if no args are given */ diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 7c604f6..69c6987 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c @@ -425,6 +425,7 @@ static unsigned int scan_dev_name(const char *d, unsigned int n, char *ptr) /* Public functions follow */ +int devfsd_main (int argc, char **argv); int devfsd_main (int argc, char **argv) { int print_version = FALSE; diff --git a/miscutils/eject.c b/miscutils/eject.c index 8e37c84..5d7ef1c 100644 --- a/miscutils/eject.c +++ b/miscutils/eject.c @@ -25,6 +25,7 @@ #define FLAG_CLOSE 1 #define FLAG_SMART 2 +int eject_main(int argc, char **argv); int eject_main(int argc, char **argv) { unsigned long flags; diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index afb4ecc..eafb078 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -2094,7 +2094,9 @@ static const char hdparm_options[] = "gfu::n::p:r::m::c::k::a::B:tTh" /*-------------------------------------*/ /* our main() routine: */ +int hdparm_main(int argc, char **argv) ATTRIBUTE_NORETURN;; int hdparm_main(int argc, char **argv) ATTRIBUTE_NORETURN; +int hdparm_main(int argc, char **argv); int hdparm_main(int argc, char **argv) { int c; diff --git a/miscutils/last.c b/miscutils/last.c index fd1033b..d354807 100644 --- a/miscutils/last.c +++ b/miscutils/last.c @@ -26,6 +26,7 @@ #error struct utmp member char[] size(s) have changed! #endif +int last_main(int argc, char **argv); int last_main(int argc, char **argv) { struct utmp ut; diff --git a/miscutils/less.c b/miscutils/less.c index 20da022..9aae81f 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -1181,6 +1181,7 @@ static void sig_catcher(int sig ATTRIBUTE_UNUSED) exit(1); } +int less_main(int argc, char **argv); int less_main(int argc, char **argv) { int keypress; diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 5602c22..aa000a7 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c @@ -10,6 +10,7 @@ #include "busybox.h" #ifdef CONFIG_FEATURE_MAKEDEVS_LEAF +int makedevs_main(int argc, char **argv); int makedevs_main(int argc, char **argv) { mode_t mode; @@ -68,6 +69,7 @@ int makedevs_main(int argc, char **argv) /* Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */ +int makedevs_main(int argc, char **argv); int makedevs_main(int argc, char **argv) { FILE *table = stdin; diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index b1bcab6..e380154 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c @@ -11,6 +11,7 @@ #include "busybox.h" +int mountpoint_main(int argc, char **argv); int mountpoint_main(int argc, char **argv) { struct stat st; diff --git a/miscutils/mt.c b/miscutils/mt.c index a4b527f..bed2969 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c @@ -50,6 +50,7 @@ static const struct mt_opcodes opcodes[] = { {0, 0} }; +int mt_main(int argc, char **argv); int mt_main(int argc, char **argv) { const char *file = "/dev/tape"; diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index 966131a..efc78d7 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c @@ -729,6 +729,7 @@ static init_func* init_functions[] = { init_cr, }; +int nmeter_main(int argc, char* argv[]); int nmeter_main(int argc, char* argv[]) { char buf[32]; diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c index e5bce9a..c95b00a 100644 --- a/miscutils/raidautorun.c +++ b/miscutils/raidautorun.c @@ -13,6 +13,7 @@ #include <linux/major.h> #include <linux/raid/md_u.h> +int raidautorun_main(int argc, char **argv); int raidautorun_main(int argc, char **argv) { if (argc != 2) diff --git a/miscutils/readahead.c b/miscutils/readahead.c index 356c404..601e845 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c @@ -12,6 +12,7 @@ #include "busybox.h" +int readahead_main(int argc, char **argv); int readahead_main(int argc, char **argv) { FILE *f; diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c index 91d49fa..23714f7 100644 --- a/miscutils/runlevel.c +++ b/miscutils/runlevel.c @@ -18,6 +18,7 @@ #include <time.h> #include <stdlib.h> +int runlevel_main(int argc, char *argv[]); int runlevel_main(int argc, char *argv[]) { struct utmp *ut; diff --git a/miscutils/rx.c b/miscutils/rx.c index 6fb23b9..29848b1 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c @@ -248,6 +248,7 @@ static void sigalrm_handler(int ATTRIBUTE_UNUSED signum) { } +int rx_main(int argc, char **argv); int rx_main(int argc, char **argv) { char *fn; diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 47c44d2..b4d5ced 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c @@ -16,6 +16,7 @@ #include "busybox.h" +int setsid_main(int argc, char *argv[]); int setsid_main(int argc, char *argv[]) { if (argc < 2) diff --git a/miscutils/strings.c b/miscutils/strings.c index 691502d..49f2cf3 100644 --- a/miscutils/strings.c +++ b/miscutils/strings.c @@ -18,6 +18,7 @@ #define PRINT_OFFSET 4 #define SIZE 8 +int strings_main(int argc, char **argv); int strings_main(int argc, char **argv) { int n, c, i = 0, status = EXIT_SUCCESS; diff --git a/miscutils/taskset.c b/miscutils/taskset.c index 28be31a..cf6a8be 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c @@ -41,6 +41,7 @@ static char *__from_cpuset(cpu_set_t *mask) #define OPT_p 1 +int taskset_main(int argc, char** argv); int taskset_main(int argc, char** argv) { cpu_set_t mask, new_mask; diff --git a/miscutils/time.c b/miscutils/time.c index df10eeb..56f1d4a 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -427,6 +427,7 @@ static void run_command(char *const *cmd, resource_t * resp) signal(SIGQUIT, quit_signal); } +int time_main(int argc, char **argv); int time_main(int argc, char **argv) { resource_t res; diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index e342c13..9dbefb9 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c @@ -23,6 +23,7 @@ static void watchdog_shutdown(int ATTRIBUTE_UNUSED unused) exit(0); } +int watchdog_main(int argc, char **argv); int watchdog_main(int argc, char **argv) { unsigned opts; |