aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-10 04:30:19 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-10 04:30:19 +0200
commitb9457c321f98f7d71d72c722ffc85cc6fabfb873 (patch)
tree74134270df8969de89969be6eff3972f98ccee57
parent2201becca443c28cb722b6a536b70a5f5d144124 (diff)
downloadliberty-b9457c321f98f7d71d72c722ffc85cc6fabfb873.tar.gz
liberty-b9457c321f98f7d71d72c722ffc85cc6fabfb873.tar.xz
liberty-b9457c321f98f7d71d72c722ffc85cc6fabfb873.zip
Rename cstr_transform() argument
It does not always have to be tolower().
-rw-r--r--liberty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty.c b/liberty.c
index 1de6a35..d151c00 100644
--- a/liberty.c
+++ b/liberty.c
@@ -2953,10 +2953,10 @@ cstr_strip_in_place (char *s, const char *stripped_chars)
}
static void
-cstr_transform (char *s, int (*tolower) (int c))
+cstr_transform (char *s, int (*xform) (int c))
{
for (; *s; s++)
- *s = tolower (*s);
+ *s = xform (*s);
}
static char *