diff options
author | cy <cy@FreeBSD.org> | 2017-05-12 02:32:01 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2017-05-12 02:32:01 +0000 |
commit | 6f3e1d5066a694b8582e3281a2e2ae9098bfe4f2 (patch) | |
tree | d32cff717a382891878f98d84700e12f139dc086 | |
parent | 30f78989c6a894f80ba0b92edd147b30847c5c1e (diff) | |
download | FreeBSD-src-6f3e1d5066a694b8582e3281a2e2ae9098bfe4f2.zip FreeBSD-src-6f3e1d5066a694b8582e3281a2e2ae9098bfe4f2.tar.gz |
MFC 317830:
Ifdef out a redundant if statement when INET6 is disabled.
-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); |