[NETFILTER]: x_tables: switch xt_match->match to bool
[deliverable/linux.git] / net / ipv4 / netfilter / ipt_iprange.c
index 86f225c1d0673ecfda76ef32b185165119f7c906..b266d98aac8ccbdba1697e06dde3e8745dd766c5 100644 (file)
@@ -23,7 +23,7 @@ MODULE_DESCRIPTION("iptables arbitrary IP range match module");
 #define DEBUGP(format, args...)
 #endif
 
-static int
+static bool
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
@@ -44,7 +44,7 @@ match(const struct sk_buff *skb,
                                info->flags & IPRANGE_SRC_INV ? "(INV) " : "",
                                NIPQUAD(info->src.min_ip),
                                NIPQUAD(info->src.max_ip));
-                       return 0;
+                       return false;
                }
        }
        if (info->flags & IPRANGE_DST) {
@@ -57,10 +57,10 @@ match(const struct sk_buff *skb,
                                info->flags & IPRANGE_DST_INV ? "(INV) " : "",
                                NIPQUAD(info->dst.min_ip),
                                NIPQUAD(info->dst.max_ip));
-                       return 0;
+                       return false;
                }
        }
-       return 1;
+       return true;
 }
 
 static struct xt_match iprange_match = {
This page took 0.029922 seconds and 5 git commands to generate.