summaryrefslogtreecommitdiffstats
path: root/src/expect
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-10-03 14:26:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-10-03 14:26:08 +0200
commitf0d7dcfeaafa01126d086e61b97d5330c73b8536 (patch)
tree9262f223ba47b0f87558107de764e8511be5404f /src/expect
parent40ca7ee80dde6b677a3899340c8d7839acd4b2fb (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'src/expect')
-rw-r--r--src/expect/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expect/parse.c b/src/expect/parse.c
index e14890d..fb7a021 100644
--- a/src/expect/parse.c
+++ b/src/expect/parse.c
@@ -25,7 +25,7 @@ int __parse_expect_message_type(const struct nlmsghdr *nlh)
}
void __parse_expect(const struct nlmsghdr *nlh,
- const struct nfattr *cda[],
+ struct nfattr *cda[],
struct nf_expect *exp)
{
struct nfgenmsg *nfhdr = NLMSG_DATA(nlh);