From 820a9567edf962c8821fb3ec25be36f7b9de7316 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Mon, 25 Apr 2016 20:58:54 +0000 Subject: [PATCH] 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 --- usr.sbin/lpr/lpd/lpd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 4aa49ca96264..925d00fcc3de 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -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.";