Rename cstr_transform() argument
It does not always have to be tolower().
This commit is contained in:
parent
2201becca4
commit
b9457c321f
|
@ -2953,10 +2953,10 @@ cstr_strip_in_place (char *s, const char *stripped_chars)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cstr_transform (char *s, int (*tolower) (int c))
|
cstr_transform (char *s, int (*xform) (int c))
|
||||||
{
|
{
|
||||||
for (; *s; s++)
|
for (; *s; s++)
|
||||||
*s = tolower (*s);
|
*s = xform (*s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
Loading…
Reference in New Issue