git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netlink: constify struct nlattr * arg to parsing functions
[safe/jmp/linux-2.6]
/
net
/
netlink
/
attr.c
diff --git
a/net/netlink/attr.c
b/net/netlink/attr.c
index
2d106cf
..
c83fea7
100644
(file)
--- 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));