1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 12:57:42 +02:00

[kernel] netfilter: fix compiler warnings in xt_layer7

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10326 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-01-30 11:45:42 +00:00
parent 122c1c510c
commit 7ab6e1eacb
2 changed files with 10 additions and 10 deletions

View File

@ -438,7 +438,7 @@
+ return count; + return count;
+} +}
+ +
+static int +static bool
+match(const struct sk_buff *skbin, +match(const struct sk_buff *skbin,
+ const struct net_device *in, + const struct net_device *in,
+ const struct net_device *out, + const struct net_device *out,
@ -446,7 +446,7 @@
+ const void *matchinfo, + const void *matchinfo,
+ int offset, + int offset,
+ unsigned int protoff, + unsigned int protoff,
+ int *hotdrop) + bool *hotdrop)
+{ +{
+ /* sidestep const without getting a compiler warning... */ + /* sidestep const without getting a compiler warning... */
+ struct sk_buff * skb = (struct sk_buff *)skbin; + struct sk_buff * skb = (struct sk_buff *)skbin;
@ -590,7 +590,7 @@
+ return (pattern_result ^ info->invert); + return (pattern_result ^ info->invert);
+} +}
+ +
+static int check(const char *tablename, +static bool check(const char *tablename,
+ const void *inf, + const void *inf,
+ const struct xt_match *match, + const struct xt_match *match,
+ void *matchinfo, + void *matchinfo,
@ -601,9 +601,9 @@
+ if (nf_ct_l3proto_try_module_get(match->family) < 0) { + if (nf_ct_l3proto_try_module_get(match->family) < 0) {
+ printk(KERN_WARNING "can't load conntrack support for " + printk(KERN_WARNING "can't load conntrack support for "
+ "proto=%d\n", match->family); + "proto=%d\n", match->family);
+ return 0; + return false;
+ } + }
+ return 1; + return true;
+} +}
+ +
+static void +static void

View File

@ -438,7 +438,7 @@
+ return count; + return count;
+} +}
+ +
+static int +static bool
+match(const struct sk_buff *skbin, +match(const struct sk_buff *skbin,
+ const struct net_device *in, + const struct net_device *in,
+ const struct net_device *out, + const struct net_device *out,
@ -446,7 +446,7 @@
+ const void *matchinfo, + const void *matchinfo,
+ int offset, + int offset,
+ unsigned int protoff, + unsigned int protoff,
+ int *hotdrop) + bool *hotdrop)
+{ +{
+ /* sidestep const without getting a compiler warning... */ + /* sidestep const without getting a compiler warning... */
+ struct sk_buff * skb = (struct sk_buff *)skbin; + struct sk_buff * skb = (struct sk_buff *)skbin;
@ -590,7 +590,7 @@
+ return (pattern_result ^ info->invert); + return (pattern_result ^ info->invert);
+} +}
+ +
+static int check(const char *tablename, +static bool check(const char *tablename,
+ const void *inf, + const void *inf,
+ const struct xt_match *match, + const struct xt_match *match,
+ void *matchinfo, + void *matchinfo,
@ -601,9 +601,9 @@
+ if (nf_ct_l3proto_try_module_get(match->family) < 0) { + if (nf_ct_l3proto_try_module_get(match->family) < 0) {
+ printk(KERN_WARNING "can't load conntrack support for " + printk(KERN_WARNING "can't load conntrack support for "
+ "proto=%d\n", match->family); + "proto=%d\n", match->family);
+ return 0; + return false;
+ } + }
+ return 1; + return true;
+} +}
+ +
+static void +static void