|
@@ -384,7 +384,7 @@ static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen,
|
|
|
*
|
|
|
* Returns the first attribute which matches the specified type.
|
|
|
*/
|
|
|
-static inline struct nlattr *nlmsg_find_attr(struct nlmsghdr *nlh,
|
|
|
+static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
|
|
|
int hdrlen, int attrtype)
|
|
|
{
|
|
|
return nla_find(nlmsg_attrdata(nlh, hdrlen),
|