Commit a5e22b6d authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: rtnetlink -- rtattr_strcmp const args.

parent 936024e0
......@@ -618,7 +618,7 @@ enum
#include <linux/config.h>
static __inline__ int rtattr_strcmp(struct rtattr *rta, char *str)
static __inline__ int rtattr_strcmp(const struct rtattr *rta, const char *str)
{
int len = strlen(str) + 1;
return len > rta->rta_len || memcmp(RTA_DATA(rta), str, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment