summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 17:14:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 17:14:04 +0200
commit67d51650ce3c3741bad8e5dca5d4e03c30f266cd (patch)
treefa0d31c1430ab0cf42520f604ae9d1482393dbc2 /util.c
parentf278026d21e2ded46f7f91152d60842525e74956 (diff)
util: fix ascii_strlower() return value
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 7306ddde34..9da7d985fa 100644
--- a/util.c
+++ b/util.c
@@ -1058,16 +1058,16 @@ bool path_startswith(const char *path, const char *prefix) {
}
}
-char *ascii_strlower(char *path) {
+char *ascii_strlower(char *t) {
char *p;
- assert(path);
+ assert(t);
- for (p = path; *p; p++)
+ for (p = t; *p; p++)
if (*p >= 'A' && *p <= 'Z')
*p = *p - 'A' + 'a';
- return p;
+ return t;
}
bool ignore_file(const char *filename) {