summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-09-11 07:54:41 +0000
committerkevlo <kevlo@FreeBSD.org>2012-09-11 07:54:41 +0000
commitce75cc6b07b16d62ee8d016684e049bfa2c87e98 (patch)
tree615d20ed79edfd7fc3c68fb037d36ff16f223f9c
parentd9d56fe8c7f8adf29e88461da35a0b720314d121 (diff)
downloadFreeBSD-src-ce75cc6b07b16d62ee8d016684e049bfa2c87e98.zip
FreeBSD-src-ce75cc6b07b16d62ee8d016684e049bfa2c87e98.tar.gz
Remove unused values
-rw-r--r--sbin/ipfw/nat.c6
-rw-r--r--usr.sbin/lpr/lpd/printjob.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipfw/nat.c b/sbin/ipfw/nat.c
index 9b4ac84..bff28e1 100644
--- a/sbin/ipfw/nat.c
+++ b/sbin/ipfw/nat.c
@@ -421,7 +421,7 @@ setup_redir_port(char *buf, int *ac, char ***av)
/*
* 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, char ***av)
/*
* 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, char ***av)
* 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: "
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index 2407c3c..6130054 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -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);
OpenPOWER on IntegriCloud