summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-22 23:04:27 +0000
committerDenis Vlasenko2007-01-22 23:04:27 +0000
commit769d1e05e668968b2432725c1844bb45e353c071 (patch)
tree2b79d2a50fc1d5bd68595db861151656d33bf2f7 /procps
parentd77f7c3136b87540447d9d58194163e7996ea2fa (diff)
downloadbusybox-769d1e05e668968b2432725c1844bb45e353c071.zip
busybox-769d1e05e668968b2432725c1844bb45e353c071.tar.gz
fix warning from needlessly-global functions
Diffstat (limited to 'procps')
-rw-r--r--procps/ps.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 12f6b65..acd9a30 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -13,17 +13,17 @@
/* Print value to buf, max size+1 chars (including trailing '\0') */
-void func_user(char *buf, int size, const procps_status_t *ps)
+static void func_user(char *buf, int size, const procps_status_t *ps)
{
safe_strncpy(buf, get_cached_username(ps->uid), size+1);
}
-void func_comm(char *buf, int size, const procps_status_t *ps)
+static void func_comm(char *buf, int size, const procps_status_t *ps)
{
safe_strncpy(buf, ps->comm, size+1);
}
-void func_args(char *buf, int size, const procps_status_t *ps)
+static void func_args(char *buf, int size, const procps_status_t *ps)
{
buf[0] = '\0';
if (ps->cmd)
@@ -32,22 +32,22 @@ void func_args(char *buf, int size, const procps_status_t *ps)
snprintf(buf, size+1, "[%.*s]", size-2, ps->comm);
}
-void func_pid(char *buf, int size, const procps_status_t *ps)
+static void func_pid(char *buf, int size, const procps_status_t *ps)
{
snprintf(buf, size+1, "%*u", size, ps->pid);
}
-void func_ppid(char *buf, int size, const procps_status_t *ps)
+static void func_ppid(char *buf, int size, const procps_status_t *ps)
{
snprintf(buf, size+1, "%*u", size, ps->ppid);
}
-void func_pgid(char *buf, int size, const procps_status_t *ps)
+static void func_pgid(char *buf, int size, const procps_status_t *ps)
{
snprintf(buf, size+1, "%*u", size, ps->pgid);
}
-void func_rss(char *buf, int size, const procps_status_t *ps)
+static void func_rss(char *buf, int size, const procps_status_t *ps)
{
char buf5[5];
smart_ulltoa5( ((unsigned long long)ps->rss) << 10, buf5);