summaryrefslogtreecommitdiffhomepage
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c1
-rw-r--r--procps/fuser.c1
-rw-r--r--procps/kill.c1
-rw-r--r--procps/pidof.c1
-rw-r--r--procps/ps.c2
-rw-r--r--procps/renice.c1
-rw-r--r--procps/sysctl.c1
-rw-r--r--procps/top.c1
-rw-r--r--procps/uptime.c1
9 files changed, 10 insertions, 0 deletions
diff --git a/procps/free.c b/procps/free.c
index 84432e0d1..860f57347 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 9752af74e..c91ae217b 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 5b167326f..9a6e93665 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 1d9718945..ea2520a4f 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 acd9a3065..f3d11b72c 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 08e0dc264..2964e20ea 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 49754489b..b5a01894f 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 712544318..2681f9748 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 37c9d449a..3573ffe73 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;