summaryrefslogtreecommitdiffstats
path: root/pw/pw_log.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-02-26 21:16:10 +0000
committerXin LI <delphij@FreeBSD.org>2013-02-26 21:16:10 +0000
commitde7ca2d0664571507e6541388f8eff0638e12c76 (patch)
tree9be766d6f5e109ffbe3ffdec25b319a8009cb1fb /pw/pw_log.c
parentf5854afb1ab049741810db885719e147c71e1af5 (diff)
parent496692e30905aa38932d451f3324c659231b9e84 (diff)
downloadpw-darwin-de7ca2d0664571507e6541388f8eff0638e12c76.tar.gz
pw-darwin-de7ca2d0664571507e6541388f8eff0638e12c76.zip
IFC @247348.
Diffstat (limited to 'pw/pw_log.c')
-rw-r--r--pw/pw_log.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pw/pw_log.c b/pw/pw_log.c
index f16274f..b774423 100644
--- a/pw/pw_log.c
+++ b/pw/pw_log.c
@@ -47,7 +47,6 @@ pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...)
}
if (logfile != NULL) {
va_list argp;
- int l;
time_t now = time(NULL);
struct tm *t = localtime(&now);
char nfmt[256];
@@ -57,7 +56,6 @@ pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...)
name = "unknown";
/* ISO 8601 International Standard Date format */
strftime(nfmt, sizeof nfmt, "%Y-%m-%d %T ", t);
- l = strlen(nfmt);
sprintf(nfmt + strlen(nfmt), "[%s:%s%s] %s\n", name, Which[which], Modes[mode], fmt);
va_start(argp, fmt);
vfprintf(logfile, nfmt, argp);