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 | 370be6f25b1d41f6e7946d6009db9b1326550706 (patch) | |
tree | e6937f221f1ebff33e9c2cd52817b1b6dbb2d305 /pw/pw_log.c | |
parent | 838ee473cf44c6ac88e6974877a3cf091b50536e (diff) | |
parent | 6a8e8e9417ba3b80124f0e102f7794e9b0bdb680 (diff) | |
download | pw-darwin-370be6f25b1d41f6e7946d6009db9b1326550706.tar.gz pw-darwin-370be6f25b1d41f6e7946d6009db9b1326550706.tar.zst pw-darwin-370be6f25b1d41f6e7946d6009db9b1326550706.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); |