Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 07:54:41 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240351 - in head: sbin/ipfw usr.sbin/lpr/lpd
Message-ID:  <201209110754.q8B7sfFs004302@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Tue Sep 11 07:54:41 2012
New Revision: 240351
URL: http://svn.freebsd.org/changeset/base/240351

Log:
  Remove unused values

Modified:
  head/sbin/ipfw/nat.c
  head/usr.sbin/lpr/lpd/printjob.c

Modified: head/sbin/ipfw/nat.c
==============================================================================
--- head/sbin/ipfw/nat.c	Tue Sep 11 07:35:24 2012	(r240350)
+++ head/sbin/ipfw/nat.c	Tue Sep 11 07:54:41 2012	(r240351)
@@ -421,7 +421,7 @@ setup_redir_port(char *buf, int *ac, cha
 	/*
 	 * Extract local address.
 	 */
-	if ((sep = strchr(**av, ',')) != NULL) {
+	if (strchr(**av, ',') != NULL) {
 		r->laddr.s_addr = INADDR_NONE;
 		r->lport = ~0;
 		numLocalPorts = 1;
@@ -454,7 +454,7 @@ setup_redir_port(char *buf, int *ac, cha
 	/*
 	 * Extract public port and optionally address.
 	 */
-	if ((sep = strchr(**av, ':')) != NULL) {
+	if (strchr(**av, ':') != NULL) {
 		if (StrToAddrAndPortRange(**av, &r->paddr, protoName,
 		    &portRange) != 0)
 			errx(EX_DATAERR, "redirect_port: "
@@ -482,7 +482,7 @@ setup_redir_port(char *buf, int *ac, cha
 	 * option for this redirect entry, else stop here processing arg[cv].
 	 */
 	if (*ac != 0 && isdigit(***av)) {
-		if ((sep = strchr(**av, ':')) != NULL) {
+		if (strchr(**av, ':') != NULL) {
 			if (StrToAddrAndPortRange(**av, &r->raddr, protoName,
 			    &portRange) != 0)
 				errx(EX_DATAERR, "redirect_port: "

Modified: head/usr.sbin/lpr/lpd/printjob.c
==============================================================================
--- head/usr.sbin/lpr/lpd/printjob.c	Tue Sep 11 07:35:24 2012	(r240350)
+++ head/usr.sbin/lpr/lpd/printjob.c	Tue Sep 11 07:54:41 2012	(r240351)
@@ -1788,7 +1788,7 @@ openpr(const struct printer *pp)
 		of_pid = 0;
 		return;
 	} else if (*pp->lp) {
-		if ((cp = strchr(pp->lp, '@')) != NULL)
+		if (strchr(pp->lp, '@') != NULL)
 			opennet(pp);
 		else
 			opentty(pp);



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