projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5315c
)
fixdep: constify strrcmp arguments
author
Nicolas Iooss
<nicolas.iooss_linux@m4x.org>
Wed, 18 Nov 2015 18:07:15 +0000
(19:07 +0100)
committer
Michal Marek
<mmarek@suse.com>
Mon, 7 Dec 2015 11:42:55 +0000
(12:42 +0100)
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>
scripts/basic/fixdep.c
patch
|
blob
|
history
diff --git
a/scripts/basic/fixdep.c
b/scripts/basic/fixdep.c
index
c68fd61
..
5b327c6
100644
(file)
--- 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(c
har *s,
char *sub)
+static int strrcmp(c
onst char *s, const
char *sub)
{
int slen = strlen(s);
int sublen = strlen(sub);