file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / rwho / rwho.c
index c23bab5..a467aa9 100644 (file)
@@ -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;