Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2011 23:19:57 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r228429 - projects/diffused_head/sys/netinet
Message-ID:  <201112112319.pBBNJvgV073360@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lstewart
Date: Sun Dec 11 23:19:57 2011
New Revision: 228429
URL: http://svn.freebsd.org/changeset/base/228429

Log:
  Avoid a compiler "declared and not used" warning  by only exporting the default
  flow rule template to consumers which actually make use of the structure.

Modified:
  projects/diffused_head/sys/netinet/ip_diffuse_export.h

Modified: projects/diffused_head/sys/netinet/ip_diffuse_export.h
==============================================================================
--- projects/diffused_head/sys/netinet/ip_diffuse_export.h	Sun Dec 11 21:30:17 2011	(r228428)
+++ projects/diffused_head/sys/netinet/ip_diffuse_export.h	Sun Dec 11 23:19:57 2011	(r228429)
@@ -149,7 +149,6 @@ static struct dip_info_descr dip_info[] 
 	{DIP_IE_CLASSES,		49152,	-1,	"ClassNames"},
 	{DIP_IE_NOP,			0,	0,	"Unknown"}
 };
-#endif
 
 /* Default flow rule template. */
 static uint16_t def_flowrule_template[15] = {
@@ -172,4 +171,6 @@ static uint16_t def_flowrule_template[15
 #define	N_DEFAULT_FLOWRULE_TEMPLATE_ITEMS (sizeof(def_flowrule_template) / \
     sizeof(*def_flowrule_template))
 
+#endif /* WITH_DIP_INFO */
+
 #endif /* _NETINET_IP_DIFFUSE_EXPORT_H_ */



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