Date: Wed, 16 Jan 2013 05:03:50 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245493 - head/usr.sbin/pw Message-ID: <201301160503.r0G53oNB087117@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301160503.r0G53oNB087117>