Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 08:16:59 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227181 - head/usr.bin/rwho
Message-ID:  <201111060816.pA68GxTF009026@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Nov  6 08:16:59 2011
New Revision: 227181
URL: http://svn.freebsd.org/changeset/base/227181

Log:
  Add missing static keywords to rwho(1)

Modified:
  head/usr.bin/rwho/rwho.c

Modified: head/usr.bin/rwho/rwho.c
==============================================================================
--- head/usr.bin/rwho/rwho.c	Sun Nov  6 08:16:53 2011	(r227180)
+++ head/usr.bin/rwho/rwho.c	Sun Nov  6 08:16:59 2011	(r227181)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111060816.pA68GxTF009026>