提交 4c835b57 编写于 作者: N Nicolas Iooss 提交者: Michal Marek

fixdep: constify strrcmp arguments

strrcmp only performs read access to the memory addressed by its
arguments so make them const pointers.
Signed-off-by: NNicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: NMichal Marek <mmarek@suse.com>
上级 de5315ce
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册