summaryrefslogtreecommitdiffstats
path: root/pw/pw_log.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-01-16 05:03:49 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-01-16 05:03:49 +0000
commit6a8e8e9417ba3b80124f0e102f7794e9b0bdb680 (patch)
treee6937f221f1ebff33e9c2cd52817b1b6dbb2d305 /pw/pw_log.c
parentdacca6ad00356bc4cd45aa4bca857ebe95cba244 (diff)
downloadpw-darwin-6a8e8e9417ba3b80124f0e102f7794e9b0bdb680.tar.gz
pw-darwin-6a8e8e9417ba3b80124f0e102f7794e9b0bdb680.tar.zst
pw-darwin-6a8e8e9417ba3b80124f0e102f7794e9b0bdb680.zip
Remove unused variables
Approved by: cperciva MFC After: 3 days
Diffstat (limited to 'pw/pw_log.c')
-rw-r--r--pw/pw_log.c2
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);