diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2015-11-18 21:07:15 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-12-07 14:42:55 +0300 |
commit | 4c835b57b8de88aef8446867701034128a8a3522 (patch) | |
tree | b7e2645508f688774ade74875db848beb9dedf79 /scripts/basic/fixdep.c | |
parent | de5315ce36463141b6d3743bec890e93443ebcb2 (diff) | |
download | linux-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/fixdep.c')
-rw-r--r-- | scripts/basic/fixdep.c | 2 |
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); |