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_pppoe.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_pppoe.c')
-rw-r--r-- | sys/netgraph/ng_pppoe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 882d45fce226..7c26cdc7a0e8 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -84,19 +84,19 @@ static ng_rcvdata_t ng_pppoe_rcvdata; static ng_disconnect_t ng_pppoe_disconnect; /* Parse type for struct ngpppoe_init_data */ -static const struct ng_parse_struct_info ngpppoe_init_data_type_info +static const struct ng_parse_struct_field ngpppoe_init_data_type_fields[] = NG_PPPOE_INIT_DATA_TYPE_INFO; static const struct ng_parse_type ngpppoe_init_data_state_type = { &ng_parse_struct_type, - &ngpppoe_init_data_type_info + &ngpppoe_init_data_type_fields }; /* Parse type for struct ngpppoe_sts */ -static const struct ng_parse_struct_info ng_pppoe_sts_type_info +static const struct ng_parse_struct_field ng_pppoe_sts_type_fields[] = NG_PPPOE_STS_TYPE_INFO; static const struct ng_parse_type ng_pppoe_sts_state_type = { &ng_parse_struct_type, - &ng_pppoe_sts_type_info + &ng_pppoe_sts_type_fields }; /* List of commands and how to convert arguments to/from ASCII */ |