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:
parent
509dcd43c9
commit
03ac85b708
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue