diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 23:04:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 23:04:27 +0000 |
commit | 769d1e05e668968b2432725c1844bb45e353c071 (patch) | |
tree | 2b79d2a50fc1d5bd68595db861151656d33bf2f7 /procps/ps.c | |
parent | d77f7c3136b87540447d9d58194163e7996ea2fa (diff) | |
download | busybox-w32-769d1e05e668968b2432725c1844bb45e353c071.tar.gz busybox-w32-769d1e05e668968b2432725c1844bb45e353c071.tar.bz2 busybox-w32-769d1e05e668968b2432725c1844bb45e353c071.zip |
fix warning from needlessly-global functions
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/procps/ps.c b/procps/ps.c index 12f6b65d1..acd9a3065 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -13,17 +13,17 @@ | |||
13 | 13 | ||
14 | /* Print value to buf, max size+1 chars (including trailing '\0') */ | 14 | /* Print value to buf, max size+1 chars (including trailing '\0') */ |
15 | 15 | ||
16 | void func_user(char *buf, int size, const procps_status_t *ps) | 16 | static void func_user(char *buf, int size, const procps_status_t *ps) |
17 | { | 17 | { |
18 | safe_strncpy(buf, get_cached_username(ps->uid), size+1); | 18 | safe_strncpy(buf, get_cached_username(ps->uid), size+1); |
19 | } | 19 | } |
20 | 20 | ||
21 | void func_comm(char *buf, int size, const procps_status_t *ps) | 21 | static void func_comm(char *buf, int size, const procps_status_t *ps) |
22 | { | 22 | { |
23 | safe_strncpy(buf, ps->comm, size+1); | 23 | safe_strncpy(buf, ps->comm, size+1); |
24 | } | 24 | } |
25 | 25 | ||
26 | void func_args(char *buf, int size, const procps_status_t *ps) | 26 | static void func_args(char *buf, int size, const procps_status_t *ps) |
27 | { | 27 | { |
28 | buf[0] = '\0'; | 28 | buf[0] = '\0'; |
29 | if (ps->cmd) | 29 | if (ps->cmd) |
@@ -32,22 +32,22 @@ void func_args(char *buf, int size, const procps_status_t *ps) | |||
32 | snprintf(buf, size+1, "[%.*s]", size-2, ps->comm); | 32 | snprintf(buf, size+1, "[%.*s]", size-2, ps->comm); |
33 | } | 33 | } |
34 | 34 | ||
35 | void func_pid(char *buf, int size, const procps_status_t *ps) | 35 | static void func_pid(char *buf, int size, const procps_status_t *ps) |
36 | { | 36 | { |
37 | snprintf(buf, size+1, "%*u", size, ps->pid); | 37 | snprintf(buf, size+1, "%*u", size, ps->pid); |
38 | } | 38 | } |
39 | 39 | ||
40 | void func_ppid(char *buf, int size, const procps_status_t *ps) | 40 | static void func_ppid(char *buf, int size, const procps_status_t *ps) |
41 | { | 41 | { |
42 | snprintf(buf, size+1, "%*u", size, ps->ppid); | 42 | snprintf(buf, size+1, "%*u", size, ps->ppid); |
43 | } | 43 | } |
44 | 44 | ||
45 | void func_pgid(char *buf, int size, const procps_status_t *ps) | 45 | static void func_pgid(char *buf, int size, const procps_status_t *ps) |
46 | { | 46 | { |
47 | snprintf(buf, size+1, "%*u", size, ps->pgid); | 47 | snprintf(buf, size+1, "%*u", size, ps->pgid); |
48 | } | 48 | } |
49 | 49 | ||
50 | void func_rss(char *buf, int size, const procps_status_t *ps) | 50 | static void func_rss(char *buf, int size, const procps_status_t *ps) |
51 | { | 51 | { |
52 | char buf5[5]; | 52 | char buf5[5]; |
53 | smart_ulltoa5( ((unsigned long long)ps->rss) << 10, buf5); | 53 | smart_ulltoa5( ((unsigned long long)ps->rss) << 10, buf5); |