From: Phil Sutter Date: Thu, 30 Jun 2016 14:47:02 +0000 (+0200) Subject: ip-address: constify match_link_kind arg X-Git-Tag: v4.7.0~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ac85b708168c57ce6ec32dfa5aa850fbf2c4ee;p=thirdparty%2Fiproute2.git 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: e0513807f6dbb ("ip-address: Support filtering by slave type, too") Suggested-by: Stephen Hemminger Signed-off-by: Phil Sutter --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index d4d649505..02bc9029d 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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;