netfilter: fix warning about invalid const usage
[safe/jmp/linux-2.6] / net / bridge / netfilter / ebt_ulog.c
index bfedf12..80c78c5 100644 (file)
@@ -254,12 +254,9 @@ ebt_ulog_tg(struct sk_buff *skb, const struct xt_target_param *par)
        return EBT_CONTINUE;
 }
 
-static bool
-ebt_ulog_tg_check(const char *table, const void *entry,
-                 const struct xt_target *target, void *data,
-                 unsigned int hookmask)
+static bool ebt_ulog_tg_check(const struct xt_tgchk_param *par)
 {
-       struct ebt_ulog_info *uloginfo = data;
+       struct ebt_ulog_info *uloginfo = par->targinfo;
 
        if (uloginfo->nlgroup > 31)
                return false;
@@ -282,7 +279,7 @@ static struct xt_target ebt_ulog_tg_reg __read_mostly = {
        .me             = THIS_MODULE,
 };
 
-static const struct nf_logger ebt_ulog_logger = {
+static struct nf_logger ebt_ulog_logger __read_mostly = {
        .name           = "ulog",
        .logfn          = &ebt_log_packet,
        .me             = THIS_MODULE,