summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_async.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_async.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_async.h')
-rw-r--r--sys/netgraph/ng_async.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netgraph/ng_async.h b/sys/netgraph/ng_async.h
index 1296f32..cd7da7c 100644
--- a/sys/netgraph/ng_async.h
+++ b/sys/netgraph/ng_async.h
@@ -70,7 +70,6 @@ struct ng_async_stat {
/* Keep this in sync with the above structure definition */
#define NG_ASYNC_STATS_TYPE_INFO { \
- { \
{ "syncOctets", &ng_parse_uint32_type }, \
{ "syncFrames", &ng_parse_uint32_type }, \
{ "syncOverflows", &ng_parse_uint32_type }, \
@@ -79,8 +78,7 @@ struct ng_async_stat {
{ "asyncRunts", &ng_parse_uint32_type }, \
{ "asyncOverflows", &ng_parse_uint32_type }, \
{ "asyncBadCheckSums",&ng_parse_uint32_type }, \
- { NULL }, \
- } \
+ { NULL } \
}
/* Configuration for this node */
@@ -93,13 +91,11 @@ struct ng_async_cfg {
/* Keep this in sync with the above structure definition */
#define NG_ASYNC_CONFIG_TYPE_INFO { \
- { \
{ "enabled", &ng_parse_int8_type }, \
{ "amru", &ng_parse_uint16_type }, \
{ "smru", &ng_parse_uint16_type }, \
{ "accm", &ng_parse_hint32_type }, \
- { NULL }, \
- } \
+ { NULL } \
}
/* Commands */
OpenPOWER on IntegriCloud