Skip to content

Commit

Permalink
fixdep: constify strrcmp arguments
Browse files Browse the repository at this point in the history
strrcmp only performs read access to the memory addressed by its
arguments so make them const pointers.

Signed-off-by: Nicolas Iooss <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
fishilico authored and Michal Marek committed Dec 7, 2015
1 parent de5315c commit 4c835b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/basic/fixdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c835b5

Please sign in to comment.