summaryrefslogtreecommitdiffstats
path: root/src/lastlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lastlog.c')
-rw-r--r--src/lastlog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lastlog.c b/src/lastlog.c
index 1db66887..ed0c78c4 100644
--- a/src/lastlog.c
+++ b/src/lastlog.c
@@ -39,7 +39,7 @@
/*
* Global variables
*/
-const char *Prog; /* Program name */
+static const char Prog[] = "lastlog"; /* Program name */
static FILE *lastlogfile; /* lastlog file stream */
static unsigned long umin; /* if uflg and has_umin, only display users with uid >= umin */
static bool has_umin = false;
@@ -290,7 +290,6 @@ int main (int argc, char **argv)
* Get the program name. The program name is used as a prefix to
* most error messages.
*/
- Prog = Basename (argv[0]);
log_set_progname(Prog);
log_set_logfd(stderr);