diff options
| author | Neel Natu <neel@FreeBSD.org> | 2013-01-17 07:04:37 +0000 |
|---|---|---|
| committer | Neel Natu <neel@FreeBSD.org> | 2013-01-17 07:04:37 +0000 |
| commit | 3f82b336fc1c9e9e6b5515190d75888486189cf4 (patch) | |
| tree | 69818cca3efa8c2264a3bcfcacd3149bade1a6a6 /pw/pw_log.c | |
| parent | 00ee02278a2638a5322e7af5c7f0791a62a17cb6 (diff) | |
| parent | c553ecba3369eae5a1306bbbfff366d7d9cf48e2 (diff) | |
| download | pw-darwin-3f82b336fc1c9e9e6b5515190d75888486189cf4.tar.gz pw-darwin-3f82b336fc1c9e9e6b5515190d75888486189cf4.zip | |
IFC @ r245509
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); |
