diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/free.c | 1 | ||||
-rw-r--r-- | procps/fuser.c | 1 | ||||
-rw-r--r-- | procps/kill.c | 1 | ||||
-rw-r--r-- | procps/pidof.c | 1 | ||||
-rw-r--r-- | procps/ps.c | 2 | ||||
-rw-r--r-- | procps/renice.c | 1 | ||||
-rw-r--r-- | procps/sysctl.c | 1 | ||||
-rw-r--r-- | procps/top.c | 1 | ||||
-rw-r--r-- | procps/uptime.c | 1 |
9 files changed, 10 insertions, 0 deletions
diff --git a/procps/free.c b/procps/free.c index 84432e0..860f573 100644 --- a/procps/free.c +++ b/procps/free.c @@ -11,6 +11,7 @@ #include "busybox.h" +int free_main(int argc, char **argv); int free_main(int argc, char **argv) { struct sysinfo info; diff --git a/procps/fuser.c b/procps/fuser.c index 9752af7..c91ae21 100644 --- a/procps/fuser.c +++ b/procps/fuser.c @@ -301,6 +301,7 @@ static int fuser_kill_pid_list(pid_list *plist, int sig) return success; } +int fuser_main(int argc, char **argv); int fuser_main(int argc, char **argv) { int port, i, optn; diff --git a/procps/kill.c b/procps/kill.c index 5b16732..9a6e936 100644 --- a/procps/kill.c +++ b/procps/kill.c @@ -10,6 +10,7 @@ #include "busybox.h" +int kill_main(int argc, char **argv); int kill_main(int argc, char **argv) { char *arg; diff --git a/procps/pidof.c b/procps/pidof.c index 1d97189..ea2520a 100644 --- a/procps/pidof.c +++ b/procps/pidof.c @@ -16,6 +16,7 @@ enum { OPT_OMIT = USE_FEATURE_PIDOF_OMIT( (1<<OPTBIT_OMIT )) + 0, }; +int pidof_main(int argc, char **argv); int pidof_main(int argc, char **argv) { unsigned first = 1; diff --git a/procps/ps.c b/procps/ps.c index acd9a30..f3d11b7 100644 --- a/procps/ps.c +++ b/procps/ps.c @@ -233,6 +233,7 @@ static void format_process(const procps_status_t *ps) /* Cannot be const: parse_o() will choke */ static char default_o[] = "pid,user" /* TODO: ,vsz,stat */ ",args"; +int ps_main(int argc, char **argv); int ps_main(int argc, char **argv) { procps_status_t *p; @@ -280,6 +281,7 @@ int ps_main(int argc, char **argv) #else /* !ENABLE_DESKTOP */ +int ps_main(int argc, char **argv); int ps_main(int argc, char **argv) { procps_status_t *p = NULL; diff --git a/procps/renice.c b/procps/renice.c index 08e0dc2..2964e20 100644 --- a/procps/renice.c +++ b/procps/renice.c @@ -26,6 +26,7 @@ void BUG_bad_PRIO_PROCESS(void); void BUG_bad_PRIO_PGRP(void); void BUG_bad_PRIO_USER(void); +int renice_main(int argc, char **argv); int renice_main(int argc, char **argv) { static const char Xetpriority_msg[] = "%cetpriority"; diff --git a/procps/sysctl.c b/procps/sysctl.c index 4975448..b5a0189 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c @@ -56,6 +56,7 @@ static void dwrite_str(int fd, const char *buf) /* * sysctl_main()... */ +int sysctl_main(int argc, char **argv); int sysctl_main(int argc, char **argv) { int retval = 0; diff --git a/procps/top.c b/procps/top.c index 7125443..2681f97 100644 --- a/procps/top.c +++ b/procps/top.c @@ -411,6 +411,7 @@ static void sig_catcher(int sig ATTRIBUTE_UNUSED) #endif /* FEATURE_USE_TERMIOS */ +int top_main(int argc, char **argv); int top_main(int argc, char **argv) { int count, lines, col; diff --git a/procps/uptime.c b/procps/uptime.c index 37c9d44..3573ffe 100644 --- a/procps/uptime.c +++ b/procps/uptime.c @@ -25,6 +25,7 @@ #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) +int uptime_main(int argc, char **argv); int uptime_main(int argc, char **argv) { int updays, uphours, upminutes; |