diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-03-02 01:51:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-02 01:51:52 -0500 |
commit | 7f6daa635c28ed686835a4080269e3fdc5a01012 (patch) | |
tree | e3a4ff5188289ee47af5f6bbff1250a1577468fe /net/key | |
parent | b42835dbe83d725198c7ab0bbe726d6dfd92a634 (diff) |
pfkey: fix warning
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>
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 7fb54577f5bd..7db86ffcf070 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -2560,7 +2560,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, | |||
2560 | } | 2560 | } |
2561 | #else | 2561 | #else |
2562 | static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, | 2562 | static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, |
2563 | struct sadb_msg *hdr, void **ext_hdrs) | 2563 | const struct sadb_msg *hdr, void * const *ext_hdrs) |
2564 | { | 2564 | { |
2565 | return -ENOPROTOOPT; | 2565 | return -ENOPROTOOPT; |
2566 | } | 2566 | } |