netlink: constify struct nlattr * arg to parsing functions
[safe/jmp/linux-2.6] / net / netlink / attr.c
index 2d106cf..c83fea7 100644 (file)
@@ -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));