Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2017 14:34:09 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317830 - head/contrib/ipfilter/tools
Message-ID:  <201705051434.v45EY9OA096100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705051434.v45EY9OA096100>