diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:16:59 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:16:59 +0000 |
commit | d2e48ceef2e69b2174d9979f63d3caba0ccecf44 (patch) | |
tree | 58f275e33aa10cb57c31b68025a06d08558aae8e | |
parent | 154b755827676c51cd7c87bec3edd2f4d45d340f (diff) | |
download | FreeBSD-src-d2e48ceef2e69b2174d9979f63d3caba0ccecf44.zip FreeBSD-src-d2e48ceef2e69b2174d9979f63d3caba0ccecf44.tar.gz |
Add missing static keywords to rwho(1)
-rw-r--r-- | usr.bin/rwho/rwho.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c index f134c18..5f1334f 100644 --- a/usr.bin/rwho/rwho.c +++ b/usr.bin/rwho/rwho.c @@ -58,16 +58,16 @@ __FBSDID("$FreeBSD$"); #include <timeconv.h> #include <unistd.h> -DIR *dirp; +static DIR *dirp; -struct whod wd; +static struct whod wd; #define NUSERS 1000 -struct myutmp { +static struct myutmp { char myhost[sizeof(wd.wd_hostname)]; int myidle; struct outmp myutmp; } myutmp[NUSERS]; -int nusers; +static int nusers; #define WHDRSIZE (ssize_t)(sizeof (wd) - sizeof (wd.wd_we)) /* @@ -75,11 +75,11 @@ int nusers; */ #define down(w,now) ((now) - (w)->wd_recvtime > 11 * 60) -time_t now; -int aflg; +static time_t now; +static int aflg; static void usage(void); -int utmpcmp(const void *, const void *); +static int utmpcmp(const void *, const void *); int main(int argc, char *argv[]) @@ -202,7 +202,7 @@ usage(void) #define MYUTMP(a) ((const struct myutmp *)(a)) -int +static int utmpcmp(const void *u1, const void *u2) { int rc; |