diff options
| author | Eitan Adler <eadler@FreeBSD.org> | 2013-01-16 05:03:49 +0000 |
|---|---|---|
| committer | Eitan Adler <eadler@FreeBSD.org> | 2013-01-16 05:03:49 +0000 |
| commit | 535460c7dc3aff3ccc4d407a9b4eb3787e956171 (patch) | |
| tree | 37c4287470eec23e0dbd1c56aa64e5f1eced37cd | |
| parent | 7b6a91800c9193f46c6623202bdda998454ad148 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pw/pw_log.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_log.c b/usr.sbin/pw/pw_log.c index f16274f2be17..b7744234c336 100644 --- a/usr.sbin/pw/pw_log.c +++ b/usr.sbin/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); |
