ip-address: constify match_link_kind arg

Since the function won't ever change the data 'kind' is pointing at, it
can sanely be made const.

Fixes: e0513807f6 ("ip-address: Support filtering by slave type, too")
Suggested-by: Stephen Hemminger <shemming@brocade.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2016-06-30 16:47:02 +02:00 committed by Stephen Hemminger
parent 509dcd43c9
commit 03ac85b708
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ static char *parse_link_kind(struct rtattr *tb, bool slave)
return "";
}
static int match_link_kind(struct rtattr **tb, char *kind, bool slave)
static int match_link_kind(struct rtattr **tb, const char *kind, bool slave)
{
if (!tb[IFLA_LINKINFO])
return -1;