From: Nicolas Iooss Date: Wed, 18 Nov 2015 18:07:15 +0000 (+0100) Subject: fixdep: constify strrcmp arguments X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4c835b57b8de88aef8446867701034128a8a3522;p=linux-beck.git fixdep: constify strrcmp arguments strrcmp only performs read access to the memory addressed by its arguments so make them const pointers. Signed-off-by: Nicolas Iooss Signed-off-by: Michal Marek --- diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index c68fd61fdc42..5b327c67a828 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -251,7 +251,7 @@ static void parse_config_file(const char *map, size_t len) } /* test is s ends in sub */ -static int strrcmp(char *s, char *sub) +static int strrcmp(const char *s, const char *sub) { int slen = strlen(s); int sublen = strlen(sub);