[NETFILTER]: x_tables: switch xt_match->match to bool
[deliverable/linux.git] / net / netfilter / xt_limit.c
index 1133b4ca4904aba01601f9c7e86749d107ab48a0..0cfe241a04934618f20a7b8899e5ee6815955254 100644 (file)
@@ -57,7 +57,7 @@ static DEFINE_SPINLOCK(limit_lock);
 
 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ)
 
-static int
+static bool
 ipt_limit_match(const struct sk_buff *skb,
                const struct net_device *in,
                const struct net_device *out,
@@ -79,11 +79,11 @@ ipt_limit_match(const struct sk_buff *skb,
                /* We're not limited. */
                r->credit -= r->cost;
                spin_unlock_bh(&limit_lock);
-               return 1;
+               return true;
        }
 
        spin_unlock_bh(&limit_lock);
-       return 0;
+       return false;
 }
 
 /* Precision saver. */
This page took 0.024405 seconds and 5 git commands to generate.