1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Remove unused variables

Approved by:	cperciva
MFC After:	3 days
This commit is contained in:
Eitan Adler 2013-01-16 05:03:49 +00:00
parent 7b6a91800c
commit 535460c7dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245493

View File

@ -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);