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 7fb5457..7db86ff 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;
 }