svn commit: r317830 - head/contrib/ipfilter/tools
Cy Schubert
cy at FreeBSD.org
Fri May 5 14:34:10 UTC 2017
Author: cy
Date: Fri May 5 14:34:09 2017
New Revision: 317830
URL: https://svnweb.freebsd.org/changeset/base/317830
Log:
Ifdef out a redundant if statement when INET6 is disabled.
MFC after: 1 week
Modified:
head/contrib/ipfilter/tools/ippool.c
Modified: head/contrib/ipfilter/tools/ippool.c
==============================================================================
--- head/contrib/ipfilter/tools/ippool.c Fri May 5 14:33:39 2017 (r317829)
+++ head/contrib/ipfilter/tools/ippool.c Fri May 5 14:34:09 2017 (r317830)
@@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *pt
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);
More information about the svn-src-head
mailing list