From 7ab6e1eacb4b7c33781ba3b8286521b11ce30141 Mon Sep 17 00:00:00 2001 From: juhosg Date: Wed, 30 Jan 2008 11:45:42 +0000 Subject: [kernel] netfilter: fix compiler warnings in xt_layer7 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10326 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'target/linux/generic-2.6/patches-2.6.24') diff --git a/target/linux/generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch b/target/linux/generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch index c49bd727d..fb438106a 100644 --- a/target/linux/generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch +++ b/target/linux/generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch @@ -438,7 +438,7 @@ + return count; +} + -+static int ++static bool +match(const struct sk_buff *skbin, + const struct net_device *in, + const struct net_device *out, @@ -446,7 +446,7 @@ + const void *matchinfo, + int offset, + unsigned int protoff, -+ int *hotdrop) ++ bool *hotdrop) +{ + /* sidestep const without getting a compiler warning... */ + struct sk_buff * skb = (struct sk_buff *)skbin; @@ -590,7 +590,7 @@ + return (pattern_result ^ info->invert); +} + -+static int check(const char *tablename, ++static bool check(const char *tablename, + const void *inf, + const struct xt_match *match, + void *matchinfo, @@ -601,9 +601,9 @@ + if (nf_ct_l3proto_try_module_get(match->family) < 0) { + printk(KERN_WARNING "can't load conntrack support for " + "proto=%d\n", match->family); -+ return 0; ++ return false; + } -+ return 1; ++ return true; +} + +static void -- cgit v1.2.3