pfkey: fix warning
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 2 Mar 2011 06:51:52 +0000 (22:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2011 06:51:52 +0000 (22:51 -0800)
If CONFIG_NET_KEY_MIGRATE is not defined the arguments of
pfkey_migrate stub do not match causing warning.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c

index 7fb54577f5bde60b9d57129354e1f1ed42f2f4b6..7db86ffcf0705be6a5eaf02002fc2a90fd58bedf 100644 (file)
@@ -2560,7 +2560,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
 }
 #else
 static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
-                        struct sadb_msg *hdr, void **ext_hdrs)
+                        const struct sadb_msg *hdr, void * const *ext_hdrs)
 {
        return -ENOPROTOOPT;
 }