summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2015-11-18 21:07:15 +0300
committerMichal Marek <mmarek@suse.com>2015-12-07 14:42:55 +0300
commit4c835b57b8de88aef8446867701034128a8a3522 (patch)
treeb7e2645508f688774ade74875db848beb9dedf79 /scripts/basic
parentde5315ce36463141b6d3743bec890e93443ebcb2 (diff)
downloadlinux-4c835b57b8de88aef8446867701034128a8a3522.tar.xz
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 <nicolas.iooss_linux@m4x.org> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/basic')
-rw-r--r--scripts/basic/fixdep.c2
1 files changed, 1 insertions, 1 deletions
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);