svn commit: r228429 - projects/diffused_head/sys/netinet
Lawrence Stewart
lstewart at FreeBSD.org
Sun Dec 11 23:19:58 UTC 2011
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_ */
More information about the svn-src-projects
mailing list