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.";