summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pw/pw_log.c')
-rw-r--r--usr.sbin/pw/pw_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_log.c b/usr.sbin/pw/pw_log.c
index fc85828..f16274f 100644
--- a/usr.sbin/pw/pw_log.c
+++ b/usr.sbin/pw/pw_log.c
@@ -51,7 +51,7 @@ pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...)
time_t now = time(NULL);
struct tm *t = localtime(&now);
char nfmt[256];
- char *name;
+ const char *name;
if ((name = getenv("LOGNAME")) == NULL && (name = getenv("USER")) == NULL)
name = "unknown";
OpenPOWER on IntegriCloud