diff options
author | cy <cy@FreeBSD.org> | 2017-05-12 02:12:03 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2017-05-12 02:12:03 +0000 |
commit | ac962543d8086711bbf1fc4561e38afd62ee8c13 (patch) | |
tree | 5394023caf2220526e79dbca5d7d6f97cd37aa07 /contrib/ipfilter/tools | |
parent | 1c97de6a177e07785913417b7ac295a42bb48145 (diff) | |
download | FreeBSD-src-ac962543d8086711bbf1fc4561e38afd62ee8c13.zip FreeBSD-src-ac962543d8086711bbf1fc4561e38afd62ee8c13.tar.gz |
Ifdef out a redundant if statement when INET6 is disabled.
Diffstat (limited to 'contrib/ipfilter/tools')
-rw-r--r-- | contrib/ipfilter/tools/ippool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/ipfilter/tools/ippool.c b/contrib/ipfilter/tools/ippool.c index 243932c..883f82a 100644 --- a/contrib/ipfilter/tools/ippool.c +++ b/contrib/ipfilter/tools/ippool.c @@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *ptr, char *arg) if (type == IPLT_POOL) { ip_pool_node_t *node = ptr; +#ifdef USE_INET6 if (node->ipn_addr.adf_family == AF_INET) +#endif node->ipn_addr.adf_len = offsetof(addrfamily_t, adf_addr) + sizeof(struct in_addr); |