svn commit: r298592 - head/usr.sbin/lpr/lpd
Garance A Drosehn
gad at FreeBSD.org
Mon Apr 25 20:58:55 UTC 2016
Author: gad
Date: Mon Apr 25 20:58:54 2016
New Revision: 298592
URL: https://svnweb.freebsd.org/changeset/base/298592
Log:
Remove a variable and three lines of code which I should have removed as
part of revision 98776 back on June 24/2002. Noticed by pfg@ trying
coccinelle for checking code.
MFC after: 3 weeks
Modified:
head/usr.sbin/lpr/lpd/lpd.c
Modified: head/usr.sbin/lpr/lpd/lpd.c
==============================================================================
--- head/usr.sbin/lpr/lpd/lpd.c Mon Apr 25 18:55:01 2016 (r298591)
+++ head/usr.sbin/lpr/lpd/lpd.c Mon Apr 25 20:58:54 2016 (r298592)
@@ -657,11 +657,7 @@ chkhost(struct sockaddr *f, int ch_opts)
char hostbuf[NI_MAXHOST], ip[NI_MAXHOST];
char serv[NI_MAXSERV];
char *syserr, *usererr;
- int error, errsav, fpass, good, wantsl;
-
- wantsl = 0;
- if (ch_opts & LPD_LOGCONNERR)
- wantsl = 1; /* also syslog the errors */
+ int error, errsav, fpass, good;
from_host = ".na.";
More information about the svn-src-all
mailing list