diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2015-11-18 19:07:15 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-12-07 12:42:55 +0100 |
commit | 4c835b57b8de88aef8446867701034128a8a3522 (patch) | |
tree | b7e2645508f688774ade74875db848beb9dedf79 /scripts | |
parent | de5315ce36463141b6d3743bec890e93443ebcb2 (diff) | |
download | linux-stable-4c835b57b8de88aef8446867701034128a8a3522.tar.gz linux-stable-4c835b57b8de88aef8446867701034128a8a3522.tar.bz2 linux-stable-4c835b57b8de88aef8446867701034128a8a3522.zip |
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')
-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); |