--- src/usr.sbin/lastlogin/lastlogin.c 2003/11/16 15:17:36 1.4 +++ src/usr.sbin/lastlogin/lastlogin.c 2004/11/13 16:14:33 1.5 @@ -44,9 +44,6 @@ #include #include -static const char *logfile = _PATH_LASTLOG; - - int main(int, char **); static void output(struct passwd *, struct lastlog *); static void usage(void); @@ -62,9 +59,8 @@ main(int argc, char **argv) usage(); } - fp = fopen(logfile, "r"); - if (fp == NULL) - err(1, "%s", logfile); + if ((fp = fopen(_PATH_LASTLOG, "r")) == NULL) + err(1, "%s", _PATH_LASTLOG); setpassent(1); /* Keep passwd file pointers open */