From aa508f10e8cbfcec3a4e095e24c4294dcb49b7e2 Mon Sep 17 00:00:00 2001 From: eadler Date: Wed, 16 Jan 2013 05:03:49 +0000 Subject: Remove unused variables Approved by: cperciva MFC After: 3 days --- usr.sbin/pw/pw_log.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'usr.sbin/pw') diff --git a/usr.sbin/pw/pw_log.c b/usr.sbin/pw/pw_log.c index f16274f..b774423 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); -- cgit v1.1