History

fixdep: constify strrcmp arguments

strrcmp only performs read access to the memory addressed by its arguments so make them const pointers.

Nicolas Iooss committed 10 years ago

Commit 4c835b51 parent de5315c1 file · +1 −1Browse files

Showing the changes to scripts/basic (1 of 1 file). Show all

Unified · Split

scripts/basic/fixdep.c+1−1
@@ -251,7 +251,7 @@ static void parse_config_file(const char *map, size_t len) · 250 unmodified lines
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);