diff options
author | archie <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
commit | b10887dc2b5e16221d7f03cd5ac6ef4fb431be07 (patch) | |
tree | a3614f18ebb460f641055c46c1ae4703125a0458 /sys/netgraph/ng_one2many.h | |
parent | 5f569c908a7d63a3364c4e60c565498bceb4ff53 (diff) | |
download | FreeBSD-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_one2many.h')
-rw-r--r-- | sys/netgraph/ng_one2many.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netgraph/ng_one2many.h b/sys/netgraph/ng_one2many.h index a83e8b0..bf79859 100644 --- a/sys/netgraph/ng_one2many.h +++ b/sys/netgraph/ng_one2many.h @@ -73,12 +73,10 @@ struct ng_one2many_config { /* Keep this in sync with the above structure definition */ #define NG_ONE2MANY_CONFIG_TYPE_INFO(atype) { \ - { \ { "xmitAlg", &ng_parse_uint32_type }, \ { "failAlg", &ng_parse_uint32_type }, \ { "enabledLinks", (atype) }, \ { NULL } \ - } \ } /* Statistics structure (one for each link) */ @@ -92,14 +90,12 @@ struct ng_one2many_link_stats { /* Keep this in sync with the above structure definition */ #define NG_ONE2MANY_LINK_STATS_TYPE_INFO { \ - { \ { "recvOctets", &ng_parse_uint64_type }, \ { "recvPackets", &ng_parse_uint64_type }, \ { "xmitOctets", &ng_parse_uint64_type }, \ { "xmitPackets", &ng_parse_uint64_type }, \ { "memoryFailures", &ng_parse_uint64_type }, \ { NULL } \ - } \ } /* Netgraph control messages */ |