diff options
author | Patrick McHardy <kaber@trash.net> | 2008-10-28 19:59:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-28 19:59:11 +0100 |
commit | b057efd4d226fcc3a92b0dc6d8ea8e8185ecb260 (patch) | |
tree | ac372761de7105de30245976d5268218ab4fb357 /net/netlink | |
parent | netns: Coexist with the sysfs limitations v2 (diff) | |
download | linux-b057efd4d226fcc3a92b0dc6d8ea8e8185ecb260.tar.xz linux-b057efd4d226fcc3a92b0dc6d8ea8e8185ecb260.zip |
netlink: constify struct nlattr * arg to parsing functions
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/attr.c b/net/netlink/attr.c index 2d106cfe1d27..c83fea7da9a8 100644 --- a/net/netlink/attr.c +++ b/net/netlink/attr.c @@ -233,7 +233,7 @@ size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize) * * Returns the number of bytes copied. */ -int nla_memcpy(void *dest, struct nlattr *src, int count) +int nla_memcpy(void *dest, const struct nlattr *src, int count) { int minlen = min_t(int, count, nla_len(src)); |