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 | c553ecba3369eae5a1306bbbfff366d7d9cf48e2 (patch) | |
| tree | 69818cca3efa8c2264a3bcfcacd3149bade1a6a6 | |
| parent | 14b3f7803f58f7e5f1a555cac6c32e662e7e9580 (diff) | |
| download | pw-darwin-c553ecba3369eae5a1306bbbfff366d7d9cf48e2.tar.gz pw-darwin-c553ecba3369eae5a1306bbbfff366d7d9cf48e2.zip | |
Remove unused variables
Approved by: cperciva
MFC After: 3 days
| -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); |
