Skip to content

Commit 4c835b5

Browse files
fishilicoMichal Marek
authored and
Michal Marek
committed
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>
1 parent de5315c commit 4c835b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/basic/fixdep.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static void parse_config_file(const char *map, size_t len)
251251
}
252252

253253
/* test is s ends in sub */
254-
static int strrcmp(char *s, char *sub)
254+
static int strrcmp(const char *s, const char *sub)
255255
{
256256
int slen = strlen(s);
257257
int sublen = strlen(sub);

0 commit comments

Comments
 (0)