projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/scripts/basic/fixdep.c
b/scripts/basic/fixdep.c
index c68fd61fdc42e11f7d4963c9e10a8f7462b3f63f..5b327c67a828dd45889f98cfac8f2a8f3e1e4c64 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);