diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
commit | 08324d276f48c53cc1af9cfe116a4c930bb77679 (patch) | |
tree | 3c2aec6142a66931af5f1da71eae54920375189e /pw/pw_log.c | |
parent | 08870ffbc9e2cee84244c234ad5b56ea9aa26fc1 (diff) | |
parent | cbfb9c649bd7eecce96516a347e4bab7c5b2cb52 (diff) | |
download | pw-darwin-08324d276f48c53cc1af9cfe116a4c930bb77679.tar.gz pw-darwin-08324d276f48c53cc1af9cfe116a4c930bb77679.tar.zst pw-darwin-08324d276f48c53cc1af9cfe116a4c930bb77679.zip |
Sync with HEAD.
Diffstat (limited to 'pw/pw_log.c')
-rw-r--r-- | pw/pw_log.c | 2 |
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); |