From f0d7dcfeaafa01126d086e61b97d5330c73b8536 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 3 Oct 2010 14:26:08 +0200 Subject: src: fix warning in compilation This warning has been there for quite some time, fix it by relaxing the const type checking. callback.c: In function `__expect_callback': callback.c:30: warning: passing argument 2 of `__parse_expect' from incompatible pointer type ../../include/internal/prototypes.h:32: note: expected `const struct nfattr **' but argument is of type `struct nfattr **' Signed-off-by: Pablo Neira Ayuso --- src/conntrack/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack/parse.c') diff --git a/src/conntrack/parse.c b/src/conntrack/parse.c index b7fe0f6..d03ddb3 100644 --- a/src/conntrack/parse.c +++ b/src/conntrack/parse.c @@ -440,7 +440,7 @@ int __parse_message_type(const struct nlmsghdr *nlh) } void __parse_conntrack(const struct nlmsghdr *nlh, - const struct nfattr *cda[], + struct nfattr *cda[], struct nf_conntrack *ct) { struct nfgenmsg *nfhdr = NLMSG_DATA(nlh); -- cgit v1.2.3