]> err.no Git - systemd/commitdiff
util: fix ascii_strlower() return value
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2010 15:14:04 +0000 (17:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2010 15:14:04 +0000 (17:14 +0200)
util.c

diff --git a/util.c b/util.c
index 7306ddde34c4ee26db5cac1389f5647cfb05d409..9da7d985fa5caacaffac58648f3b533f243b4e72 100644 (file)
--- 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) {