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_ppp.c | |
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_ppp.c')
-rw-r--r-- | sys/netgraph/ng_ppp.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index 27c96089f396..7c435a8021df 100644 --- a/sys/netgraph/ng_ppp.c +++ b/sys/netgraph/ng_ppp.c @@ -254,27 +254,27 @@ static const struct ng_parse_type ng_ppp_rseq_array_type = { &ng_parse_fixedarray_type, &ng_ppp_rseq_array_info, }; -static const struct ng_parse_struct_info ng_ppp_mp_state_type_info +static const struct ng_parse_struct_field ng_ppp_mp_state_type_fields[] = NG_PPP_MP_STATE_TYPE_INFO(&ng_ppp_rseq_array_type); static const struct ng_parse_type ng_ppp_mp_state_type = { &ng_parse_struct_type, - &ng_ppp_mp_state_type_info, + &ng_ppp_mp_state_type_fields }; /* Parse type for struct ng_ppp_link_conf */ -static const struct ng_parse_struct_info - ng_ppp_link_type_info = NG_PPP_LINK_TYPE_INFO; +static const struct ng_parse_struct_field ng_ppp_link_type_fields[] + = NG_PPP_LINK_TYPE_INFO; static const struct ng_parse_type ng_ppp_link_type = { &ng_parse_struct_type, - &ng_ppp_link_type_info, + &ng_ppp_link_type_fields }; /* Parse type for struct ng_ppp_bund_conf */ -static const struct ng_parse_struct_info - ng_ppp_bund_type_info = NG_PPP_BUND_TYPE_INFO; +static const struct ng_parse_struct_field ng_ppp_bund_type_fields[] + = NG_PPP_BUND_TYPE_INFO; static const struct ng_parse_type ng_ppp_bund_type = { &ng_parse_struct_type, - &ng_ppp_bund_type_info, + &ng_ppp_bund_type_fields }; /* Parse type for struct ng_ppp_node_conf */ @@ -286,19 +286,19 @@ static const struct ng_parse_type ng_ppp_link_array_type = { &ng_parse_fixedarray_type, &ng_ppp_array_info, }; -static const struct ng_parse_struct_info ng_ppp_conf_type_info +static const struct ng_parse_struct_field ng_ppp_conf_type_fields[] = NG_PPP_CONFIG_TYPE_INFO(&ng_ppp_bund_type, &ng_ppp_link_array_type); static const struct ng_parse_type ng_ppp_conf_type = { &ng_parse_struct_type, - &ng_ppp_conf_type_info + &ng_ppp_conf_type_fields }; /* Parse type for struct ng_ppp_link_stat */ -static const struct ng_parse_struct_info - ng_ppp_stats_type_info = NG_PPP_STATS_TYPE_INFO; +static const struct ng_parse_struct_field ng_ppp_stats_type_fields[] + = NG_PPP_STATS_TYPE_INFO; static const struct ng_parse_type ng_ppp_stats_type = { &ng_parse_struct_type, - &ng_ppp_stats_type_info + &ng_ppp_stats_type_fields }; /* List of commands and how to convert arguments to/from ASCII */ |