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_tee.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_tee.h')
-rw-r--r-- | sys/netgraph/ng_tee.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netgraph/ng_tee.h b/sys/netgraph/ng_tee.h index 45ff9ba..ea7ded7 100644 --- a/sys/netgraph/ng_tee.h +++ b/sys/netgraph/ng_tee.h @@ -63,13 +63,11 @@ struct ng_tee_hookstat { /* Keep this in sync with the above structure definition */ #define NG_TEE_HOOKSTAT_INFO { \ - { \ { "inOctets", &ng_parse_uint64_type }, \ { "inFrames", &ng_parse_uint64_type }, \ { "outOctets", &ng_parse_uint64_type }, \ { "outFrames", &ng_parse_uint64_type }, \ - { NULL }, \ - } \ + { NULL } \ } /* Statistics structure returned by NGM_TEE_GET_STATS */ @@ -82,13 +80,11 @@ struct ng_tee_stats { /* Keep this in sync with the above structure definition */ #define NG_TEE_STATS_INFO(hstype) { \ - { \ { "right", (hstype) }, \ { "left", (hstype) }, \ { "right2left", (hstype) }, \ { "left2right", (hstype) }, \ - { NULL }, \ - } \ + { NULL } \ } /* Netgraph commands */ |