[BRIDGE] ebtables: Build fix.
authorAndrew Morton <akpm@osdl.org>
Tue, 21 Mar 2006 06:55:02 +0000 (22:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:55:02 +0000 (22:55 -0800)
net/bridge/netfilter/ebtables.c:1481: warning: initialization makes pointer from integer without a cast

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebtables.c

index 4b178b4a2a95213e5cf458d9777198047df19999..997953367204de5ec8e2cf49a12cbb26e37fa69f 100644 (file)
@@ -1477,8 +1477,14 @@ static int do_ebt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
 }
 
 static struct nf_sockopt_ops ebt_sockopts =
-{ { NULL, NULL }, PF_INET, EBT_BASE_CTL, EBT_SO_SET_MAX + 1, do_ebt_set_ctl,
-    EBT_BASE_CTL, EBT_SO_GET_MAX + 1, do_ebt_get_ctl, 0, NULL
+{
+       .pf             = PF_INET,
+       .set_optmin     = EBT_BASE_CTL,
+       .set_optmax     = EBT_SO_SET_MAX + 1,
+       .set            = do_ebt_set_ctl,
+       .get_optmin     = EBT_BASE_CTL,
+       .get_optmax     = EBT_SO_GET_MAX + 1,
+       .get            = do_ebt_get_ctl,
 };
 
 static int __init init(void)