svn commit: r245493 - head/usr.sbin/pw
Eitan Adler
eadler at FreeBSD.org
Wed Jan 16 05:03:50 UTC 2013
Author: eadler
Date: Wed Jan 16 05:03:49 2013
New Revision: 245493
URL: http://svnweb.freebsd.org/changeset/base/245493
Log:
Remove unused variables
Approved by: cperciva
MFC After: 3 days
Modified:
head/usr.sbin/pw/pw_log.c
Modified: head/usr.sbin/pw/pw_log.c
==============================================================================
--- head/usr.sbin/pw/pw_log.c Wed Jan 16 05:03:46 2013 (r245492)
+++ head/usr.sbin/pw/pw_log.c Wed Jan 16 05:03:49 2013 (r245493)
@@ -47,7 +47,6 @@ pw_log(struct userconf * cnf, int mode,
}
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,
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);
More information about the svn-src-head
mailing list