From 87a0dfec43336ed957a414a1cb5e02239e04a9b8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 23 Nov 2008 15:21:05 +0100 Subject: src: set specific array size for the API This patch adds the size of the arrays to set to NULL unset elements. This helps to spot unset functions for new attributes. Signed-off-by: Pablo Neira Ayuso --- src/conntrack/grp_getter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack/grp_getter.c') diff --git a/src/conntrack/grp_getter.c b/src/conntrack/grp_getter.c index adfd903..60e0b7e 100644 --- a/src/conntrack/grp_getter.c +++ b/src/conntrack/grp_getter.c @@ -92,7 +92,7 @@ static void get_attr_grp_repl_ctrs(const struct nf_conntrack *ct, void *data) this->bytes = ct->counters[__DIR_REPL].bytes; } -get_attr_grp get_attr_grp_array[] = { +get_attr_grp get_attr_grp_array[ATTR_GRP_MAX] = { [ATTR_GRP_ORIG_IPV4] = get_attr_grp_orig_ipv4, [ATTR_GRP_REPL_IPV4] = get_attr_grp_repl_ipv4, [ATTR_GRP_ORIG_IPV6] = get_attr_grp_orig_ipv6, -- cgit v1.2.3