From 6a8e8e9417ba3b80124f0e102f7794e9b0bdb680 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Wed, 16 Jan 2013 05:03:49 +0000 Subject: Remove unused variables Approved by: cperciva MFC After: 3 days --- pw/pw_log.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'pw') 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); -- cgit v1.2.3-56-ge451