diff options
| author | Andreas Schulz <ats@FreeBSD.org> | 1994-11-18 23:36:18 +0000 |
|---|---|---|
| committer | Andreas Schulz <ats@FreeBSD.org> | 1994-11-18 23:36:18 +0000 |
| commit | bc9c7467df60c3e6403f2dae407cf60ebc999507 (patch) | |
| tree | a16f1f9219928b2c06a7389b06463d993d5cb5bf /libexec | |
| parent | c2cd62a46d1bb5b6fa38ab23af563066ebf0c6a3 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rpc.rusersd/rusers_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index b079fbf53968..3a603c2d19ed 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)); |
