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 | 17bc9031bfed577deb2722150179f4c8c11abfe2 (patch) | |
| tree | 9be766d6f5e109ffbe3ffdec25b319a8009cb1fb /pw/pw_log.c | |
| parent | 23a2b3b59c24cacf1622e3ffb1274c07aca04840 (diff) | |
| parent | 496692e30905aa38932d451f3324c659231b9e84 (diff) | |
| download | pw-darwin-17bc9031bfed577deb2722150179f4c8c11abfe2.tar.gz pw-darwin-17bc9031bfed577deb2722150179f4c8c11abfe2.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); |
