projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b42835d
)
pfkey: fix warning
author
Stephen Hemminger
<shemminger@vyatta.com>
Wed, 2 Mar 2011 06:51:52 +0000
(22:51 -0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/key/af_key.c
b/net/key/af_key.c
index
7fb5457
..
7db86ff
100644
(file)
--- 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,
}
#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;
}