iproute: constify rtattr_cmp

This commit is contained in:
Stephen Hemminger 2016-07-15 11:34:45 -07:00
parent 74af8dd962
commit 79f4a39365
1 changed files with 1 additions and 1 deletions

View File

@ -1810,7 +1810,7 @@ static int iproute_get(int argc, char **argv)
return 0;
}
static int rtattr_cmp(struct rtattr *rta1, struct rtattr *rta2)
static int rtattr_cmp(const struct rtattr *rta1, const struct rtattr *rta2)
{
if (!rta1 || !rta2 || rta1->rta_len != rta2->rta_len)
return 1;