diff options
author | Archie Cobbs <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
commit | f0184ff8e3b84a1c7273492d8854cfaa012060b5 (patch) | |
tree | a3614f18ebb460f641055c46c1ae4703125a0458 /sys/netgraph/ng_sample.h | |
parent | cbcfdbcfe6add167e910cf92c7def46c278a933b (diff) | |
download | src-f0184ff8e3b84a1c7273492d8854cfaa012060b5.tar.gz src-f0184ff8e3b84a1c7273492d8854cfaa012060b5.zip |
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
Notes
Notes:
svn path=/head/; revision=97685
Diffstat (limited to 'sys/netgraph/ng_sample.h')
-rw-r--r-- | sys/netgraph/ng_sample.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_sample.h b/sys/netgraph/ng_sample.h index 9a78022a8f29..4f63c80f84bc 100644 --- a/sys/netgraph/ng_sample.h +++ b/sys/netgraph/ng_sample.h @@ -80,11 +80,9 @@ struct ngxxxstat { * This needs to be kept in sync with the above structure definition */ #define NG_XXX_STATS_TYPE_INFO { \ - { \ { "packets_in", &ng_parse_uint32_type }, \ { "packets_out", &ng_parse_uint32_type }, \ - { NULL }, \ - } \ + { NULL } \ } #endif /* _NETGRAPH_SAMPLE_H_ */ |