diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-04 19:24:19 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-04 19:24:19 +0000 |
commit | d0bfb79e24e4ef4620f6c86b17140807520bbdf1 (patch) | |
tree | 68f8fb14dd2854c81287281080890e757caca896 /usr.bin/top | |
parent | e2a33ade4e9180e79840984cd0d0507c8b2b5e7a (diff) |
missing prototypes; from Mark Lumsden with a twist by me.
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index d5b07e9c954..789c2c74e1e 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.57 2007/02/04 14:58:45 otto Exp $ */ +/* $OpenBSD: machine.c,v 1.58 2007/04/04 19:24:18 otto Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -59,6 +59,8 @@ #include "loadavg.h" static int swapmode(int *, int *); +static char *state_abbr(struct kinfo_proc2 *); +static char *format_comm(struct kinfo_proc2 *); /* get_process_info passes back a handle. This is what it looks like: */ @@ -413,7 +415,7 @@ get_process_info(struct system_info *si, struct process_select *sel, char fmt[MAX_COLS]; /* static area where result is built */ -char * +static char * state_abbr(struct kinfo_proc2 *pp) { static char buf[10]; @@ -427,7 +429,7 @@ state_abbr(struct kinfo_proc2 *pp) return buf; } -char * +static char * format_comm(struct kinfo_proc2 *kp) { #define ARG_SIZE 60 |