summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 08:18:47 +0000
committered <ed@FreeBSD.org>2011-11-06 08:18:47 +0000
commit40d992c2db7a9e78bd3c9878f43980201535c03a (patch)
treef52b9862e09b484959c5017958db9375ba19e3b8 /usr.bin/w/w.c
parent66190ef17d1ed57bc92917988b51af851af4084d (diff)
downloadFreeBSD-src-40d992c2db7a9e78bd3c9878f43980201535c03a.zip
FreeBSD-src-40d992c2db7a9e78bd3c9878f43980201535c03a.tar.gz
Add missing static keywords to w(1)
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r--usr.bin/w/w.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 0331287..8441ce5 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -85,25 +85,24 @@ static const char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
#include "extern.h"
-struct timeval boottime;
-struct utmpx *utmp;
-struct winsize ws;
-kvm_t *kd;
-time_t now; /* the current time of day */
-int ttywidth; /* width of tty */
-int argwidth; /* width of tty */
-int header = 1; /* true if -h flag: don't print heading */
-int nflag; /* true if -n flag: don't convert addrs */
-int dflag; /* true if -d flag: output debug info */
-int sortidle; /* sort by idle time */
+static struct utmpx *utmp;
+static struct winsize ws;
+static kvm_t *kd;
+static time_t now; /* the current time of day */
+static int ttywidth; /* width of tty */
+static int argwidth; /* width of tty */
+static int header = 1; /* true if -h flag: don't print heading */
+static int nflag; /* true if -n flag: don't convert addrs */
+static int dflag; /* true if -d flag: output debug info */
+static int sortidle; /* sort by idle time */
int use_ampm; /* use AM/PM time */
-int use_comma; /* use comma as floats separator */
-char **sel_users; /* login array of particular users selected */
+static int use_comma; /* use comma as floats separator */
+static char **sel_users; /* login array of particular users selected */
/*
* One of these per active utmp entry.
*/
-struct entry {
+static struct entry {
struct entry *next;
struct utmpx utmp;
dev_t tdev; /* dev_t of terminal */
OpenPOWER on IntegriCloud