summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_etf.c
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_etf.c
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_etf.c')
-rw-r--r--sys/netgraph/ng_etf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netgraph/ng_etf.c b/sys/netgraph/ng_etf.c
index 62ba8aa..b452bdd 100644
--- a/sys/netgraph/ng_etf.c
+++ b/sys/netgraph/ng_etf.c
@@ -70,18 +70,18 @@ static ng_rcvdata_t ng_etf_rcvdata; /* note these are both ng_rcvdata_t */
static ng_disconnect_t ng_etf_disconnect;
/* Parse type for struct ng_etfstat */
-static const struct ng_parse_struct_info
- ng_etf_stat_type_info = NG_ETF_STATS_TYPE_INFO;
+static const struct ng_parse_struct_field ng_etf_stat_type_fields[]
+ = NG_ETF_STATS_TYPE_INFO;
static const struct ng_parse_type ng_etf_stat_type = {
&ng_parse_struct_type,
- &ng_etf_stat_type_info
+ &ng_etf_stat_type_fields
};
/* Parse type for struct ng_setfilter */
-static const struct ng_parse_struct_info
- ng_etf_filter_type_info = NG_ETF_FILTER_TYPE_INFO;
+static const struct ng_parse_struct_field ng_etf_filter_type_fields[]
+ = NG_ETF_FILTER_TYPE_INFO;
static const struct ng_parse_type ng_etf_filter_type = {
&ng_parse_struct_type,
- &ng_etf_filter_type_info
+ &ng_etf_filter_type_fields
};
/* List of commands and how to convert arguments to/from ASCII */
OpenPOWER on IntegriCloud