]> err.no Git - linux-2.6/blobdiff - net/netfilter/xt_statistic.c
[TCP]: tcp_packets_out_inc to tcp_output.c (no callers elsewhere)
[linux-2.6] / net / netfilter / xt_statistic.c
index 989924f9024e146dd5713f6600a876e2321a68fb..4089dae4e2865ae9f99377d307195ff69127f07b 100644 (file)
@@ -52,21 +52,21 @@ match(const struct sk_buff *skb,
        return ret;
 }
 
-static int
+static bool
 checkentry(const char *tablename, const void *entry,
           const struct xt_match *match, void *matchinfo,
           unsigned int hook_mask)
 {
-       struct xt_statistic_info *info = (struct xt_statistic_info *)matchinfo;
+       struct xt_statistic_info *info = matchinfo;
 
        if (info->mode > XT_STATISTIC_MODE_MAX ||
            info->flags & ~XT_STATISTIC_MASK)
-               return 0;
+               return false;
        info->master = info;
-       return 1;
+       return true;
 }
 
-static struct xt_match xt_statistic_match[] = {
+static struct xt_match xt_statistic_match[] __read_mostly = {
        {
                .name           = "statistic",
                .family         = AF_INET,