Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2016 20:58:54 +0000 (UTC)
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298592 - head/usr.sbin/lpr/lpd
Message-ID:  <201604252058.u3PKws8J006298@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.";
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604252058.u3PKws8J006298>