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
file reorg, pathnames.h, paths.h
[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
c23bab5
..
a467aa9
100644
(file)
--- a/
usr/src/usr.bin/rwho/rwho.c
+++ b/
usr/src/usr.bin/rwho/rwho.c
@@
-22,7
+22,7
@@
char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)rwho.c 5.
3
(Berkeley) %G%";
+static char sccsid[] = "@(#)rwho.c 5.
4
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-44,7
+44,6
@@
struct myutmp {
int nusers;
#define WHDRSIZE (sizeof (wd) - sizeof (wd.wd_we))
int nusers;
#define WHDRSIZE (sizeof (wd) - sizeof (wd.wd_we))
-#define RWHODIR "/usr/spool/rwho"
/*
* this macro should be shared with ruptime.
*/
/*
* this macro should be shared with ruptime.
*/
@@
-79,8
+78,8
@@
main(argc, argv)
fprintf(stderr, "usage: rwho [-a]\n");
exit(1);
}
fprintf(stderr, "usage: rwho [-a]\n");
exit(1);
}
- if (chdir(RWHODIR) || (dirp = opendir(".")) == NULL) {
- perror(RWHODIR);
+ if (chdir(
_PATH_
RWHODIR) || (dirp = opendir(".")) == NULL) {
+ perror(
_PATH_
RWHODIR);
exit(1);
}
mp = myutmp;
exit(1);
}
mp = myutmp;