summaryrefslogtreecommitdiffstats
path: root/src/expiry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expiry.c')
-rw-r--r--src/expiry.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/expiry.c b/src/expiry.c
index b980b656..673cbc3c 100644
--- a/src/expiry.c
+++ b/src/expiry.c
@@ -23,7 +23,7 @@
#include "shadowlog.h"
/* Global variables */
-const char *Prog;
+static const char Prog[] = "expiry";
static bool cflg = false;
/* local function prototypes */
@@ -123,7 +123,6 @@ int main (int argc, char **argv)
struct passwd *pwd;
struct spwd *spwd;
- Prog = Basename (argv[0]);
log_set_progname(Prog);
log_set_logfd(stderr);
@@ -145,7 +144,7 @@ int main (int argc, char **argv)
(void) bindtextdomain (PACKAGE, LOCALEDIR);
(void) textdomain (PACKAGE);
- OPENLOG ("expiry");
+ OPENLOG (Prog);
process_flags (argc, argv);