summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rusersd
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-11-18 23:36:18 +0000
committerats <ats@FreeBSD.org>1994-11-18 23:36:18 +0000
commit1e4e71f6b0c73e90024d8e7112a2a60e935155c5 (patch)
treea16f1f9219928b2c06a7389b06463d993d5cb5bf /libexec/rpc.rusersd
parent36b86c098c688d9c2993fe1e710b6189634f52e0 (diff)
downloadFreeBSD-src-1e4e71f6b0c73e90024d8e7112a2a60e935155c5.zip
FreeBSD-src-1e4e71f6b0c73e90024d8e7112a2a60e935155c5.tar.gz
Make two variables static so that the compiler warnings are
vanishing. As far as i know rpc.rusersd is single_threaded, so this shouldn't be a problem.
Diffstat (limited to 'libexec/rpc.rusersd')
-rw-r--r--libexec/rpc.rusersd/rusers_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c
index b079fbf..3a603c2 100644
--- a/libexec/rpc.rusersd/rusers_proc.c
+++ b/libexec/rpc.rusersd/rusers_proc.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: rusers_proc.c,v 1.1.1.1 1994/08/28 14:53:44 csgr Exp $";
+static char rcsid[] = "$Id: rusers_proc.c,v 1.2 1994/11/04 02:12:49 jkh Exp $";
#endif /* not lint */
#include <signal.h>
@@ -239,7 +239,7 @@ do_names_2(int all)
int *
rusers_num()
{
- int num_users = 0;
+ static int num_users = 0;
struct utmp usr;
ufp = fopen(_PATH_UTMP, "r");
@@ -268,7 +268,7 @@ static utmparr *
do_names_1(int all)
{
utmpidlearr *utidle;
- utmparr ut;
+ static utmparr ut;
int i;
bzero((char *)&ut, sizeof(ut));
OpenPOWER on IntegriCloud