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_etf.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_etf.h')
-rw-r--r-- | sys/netgraph/ng_etf.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netgraph/ng_etf.h b/sys/netgraph/ng_etf.h index 58da641..217cff8 100644 --- a/sys/netgraph/ng_etf.h +++ b/sys/netgraph/ng_etf.h @@ -65,11 +65,9 @@ struct ng_etfstat { * This needs to be kept in sync with the above structure definition */ #define NG_ETF_STATS_TYPE_INFO { \ - { \ { "packets_in", &ng_parse_uint32_type }, \ { "packets_out", &ng_parse_uint32_type }, \ - { NULL }, \ - } \ + { NULL } \ } /* This structure is returned by the NGM_ETF_GET_STATUS command */ @@ -82,11 +80,9 @@ struct ng_etffilter { * This needs to be kept in sync with the above structure definition */ #define NG_ETF_FILTER_TYPE_INFO { \ - { \ { "matchhook", &ng_parse_hookbuf_type }, \ { "ethertype", &ng_parse_uint16_type }, \ - { NULL }, \ - } \ + { NULL } \ } #endif /* _NETGRAPH_ETHERTYPE_FILTER_H_ */ |