summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
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 /sbin/ipfw
parentd9d56fe8c7f8adf29e88461da35a0b720314d121 (diff)
downloadFreeBSD-src-ce75cc6b07b16d62ee8d016684e049bfa2c87e98.zip
FreeBSD-src-ce75cc6b07b16d62ee8d016684e049bfa2c87e98.tar.gz
Remove unused values
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/nat.c6
1 files changed, 3 insertions, 3 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: "
OpenPOWER on IntegriCloud