From b10887dc2b5e16221d7f03cd5ac6ef4fb431be07 Mon Sep 17 00:00:00 2001 From: archie Date: Fri, 31 May 2002 23:48:03 +0000 Subject: 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 --- sys/netgraph/ng_cisco.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/netgraph/ng_cisco.c') diff --git a/sys/netgraph/ng_cisco.c b/sys/netgraph/ng_cisco.c index bf4c9b4..583f7ac 100644 --- a/sys/netgraph/ng_cisco.c +++ b/sys/netgraph/ng_cisco.c @@ -128,19 +128,19 @@ static void cisco_keepalive(void *arg); static int cisco_send(sc_p sc, int type, long par1, long par2); /* Parse type for struct ng_cisco_ipaddr */ -static const struct ng_parse_struct_info - ng_cisco_ipaddr_type_info = NG_CISCO_IPADDR_TYPE_INFO; +static const struct ng_parse_struct_field ng_cisco_ipaddr_type_fields[] + = NG_CISCO_IPADDR_TYPE_INFO; static const struct ng_parse_type ng_cisco_ipaddr_type = { &ng_parse_struct_type, - &ng_cisco_ipaddr_type_info + &ng_cisco_ipaddr_type_fields }; /* Parse type for struct ng_async_stat */ -static const struct ng_parse_struct_info - ng_cisco_stats_type_info = NG_CISCO_STATS_TYPE_INFO; +static const struct ng_parse_struct_field ng_cisco_stats_type_fields[] + = NG_CISCO_STATS_TYPE_INFO; static const struct ng_parse_type ng_cisco_stats_type = { &ng_parse_struct_type, - &ng_cisco_stats_type_info, + &ng_cisco_stats_type_fields }; /* List of commands and how to convert arguments to/from ASCII */ -- cgit v1.1