[NETFILTER]: x_tables: switch xt_match->checkentry to bool
[deliverable/linux.git] / net / netfilter / xt_state.c
index f77f74ad5c978b60071e3533b5ceed68266d7f39..5b9c59aa14d32fe58eea2bb4988154f1911e340d 100644 (file)
@@ -44,18 +44,18 @@ match(const struct sk_buff *skb,
        return (sinfo->statemask & statebit);
 }
 
-static int check(const char *tablename,
-                const void *inf,
-                const struct xt_match *match,
-                void *matchinfo,
-                unsigned int hook_mask)
+static bool check(const char *tablename,
+                 const void *inf,
+                 const struct xt_match *match,
+                 void *matchinfo,
+                 unsigned int hook_mask)
 {
        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
This page took 0.026435 seconds and 5 git commands to generate.