projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add copyright notice
[unix-history]
/
usr
/
src
/
usr.bin
/
rwho
/
rwho.c
diff --git
a/usr/src/usr.bin/rwho/rwho.c
b/usr/src/usr.bin/rwho/rwho.c
index
f57c7f3
..
d381429
100644
(file)
--- a/
usr/src/usr.bin/rwho/rwho.c
+++ b/
usr/src/usr.bin/rwho/rwho.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)rwho.c 4.
7 (Berkeley) 83/07/01
";
+static char sccsid[] = "@(#)rwho.c 4.
9 (Berkeley) 84/12/05
";
#endif
#include <sys/param.h>
#endif
#include <sys/param.h>
@@
-7,7
+7,7
@@
static char sccsid[] = "@(#)rwho.c 4.7 (Berkeley) 83/07/01";
#include <sys/dir.h>
#include "../etc/rwhod/rwhod.h"
#include <sys/dir.h>
#include "../etc/rwhod/rwhod.h"
-DIR *
etc
;
+DIR *
dirp
;
struct whod wd;
int utmpcmp();
struct whod wd;
int utmpcmp();
@@
-49,13
+49,13
@@
again:
perror(RWHODIR);
exit(1);
}
perror(RWHODIR);
exit(1);
}
-
etc
= opendir(".");
- if (
etc
== NULL) {
- perror(
"/etc"
);
+
dirp
= opendir(".");
+ if (
dirp
== NULL) {
+ perror(
RWHODIR
);
exit(1);
}
mp = myutmp;
exit(1);
}
mp = myutmp;
- while (dp = readdir(
etc
)) {
+ while (dp = readdir(
dirp
)) {
if (dp->d_ino == 0)
continue;
if (strncmp(dp->d_name, "whod.", 5))
if (dp->d_ino == 0)
continue;
if (strncmp(dp->d_name, "whod.", 5))