summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_bridge.h
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-05-31 23:48:03 +0000
committerarchie <archie@FreeBSD.org>2002-05-31 23:48:03 +0000
commitb10887dc2b5e16221d7f03cd5ac6ef4fb431be07 (patch)
treea3614f18ebb460f641055c46c1ae4703125a0458 /sys/netgraph/ng_bridge.h
parent5f569c908a7d63a3364c4e60c565498bceb4ff53 (diff)
downloadFreeBSD-src-b10887dc2b5e16221d7f03cd5ac6ef4fb431be07.zip
FreeBSD-src-b10887dc2b5e16221d7f03cd5ac6ef4fb431be07.tar.gz
Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. MFC after: 2 weeks
Diffstat (limited to 'sys/netgraph/ng_bridge.h')
-rw-r--r--sys/netgraph/ng_bridge.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/netgraph/ng_bridge.h b/sys/netgraph/ng_bridge.h
index 7c83d3f..79c4de6 100644
--- a/sys/netgraph/ng_bridge.h
+++ b/sys/netgraph/ng_bridge.h
@@ -64,14 +64,12 @@ struct ng_bridge_config {
/* Keep this in sync with the above structure definition */
#define NG_BRIDGE_CONFIG_TYPE_INFO(ainfo) { \
- { \
{ "ipfw", (ainfo) }, \
{ "debugLevel", &ng_parse_uint8_type }, \
{ "loopTimeout", &ng_parse_uint32_type }, \
{ "maxStaleness", &ng_parse_uint32_type }, \
{ "minStableAge", &ng_parse_uint32_type }, \
{ NULL } \
- } \
}
/* Statistics structure (one for each link) */
@@ -94,7 +92,6 @@ struct ng_bridge_link_stats {
/* Keep this in sync with the above structure definition */
#define NG_BRIDGE_STATS_TYPE_INFO { \
- { \
{ "recvOctets", &ng_parse_uint64_type }, \
{ "recvPackets", &ng_parse_uint64_type }, \
{ "recvMulticast", &ng_parse_uint64_type }, \
@@ -110,7 +107,6 @@ struct ng_bridge_link_stats {
{ "loopDetects", &ng_parse_uint64_type }, \
{ "memoryFailures", &ng_parse_uint64_type }, \
{ NULL } \
- } \
}
/* Structure describing a single host */
@@ -123,13 +119,11 @@ struct ng_bridge_host {
/* Keep this in sync with the above structure definition */
#define NG_BRIDGE_HOST_TYPE_INFO(entype) { \
- { \
{ "addr", (entype) }, \
{ "linkNum", &ng_parse_uint16_type }, \
{ "age", &ng_parse_uint16_type }, \
{ "staleness", &ng_parse_uint16_type }, \
{ NULL } \
- } \
}
/* Structure returned by NGM_BRIDGE_GET_TABLE */
@@ -140,11 +134,9 @@ struct ng_bridge_host_ary {
/* Keep this in sync with the above structure definition */
#define NG_BRIDGE_HOST_ARY_TYPE_INFO(harytype) { \
- { \
{ "numHosts", &ng_parse_uint32_type }, \
{ "hosts", (harytype) }, \
{ NULL } \
- } \
}
/* Netgraph control messages */
OpenPOWER on IntegriCloud