mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-16 09:06:45 +07:00
util: fix ascii_strlower() return value
This commit is contained in:
parent
f278026d21
commit
67d51650ce
8
util.c
8
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;
|
char *p;
|
||||||
|
|
||||||
assert(path);
|
assert(t);
|
||||||
|
|
||||||
for (p = path; *p; p++)
|
for (p = t; *p; p++)
|
||||||
if (*p >= 'A' && *p <= 'Z')
|
if (*p >= 'A' && *p <= 'Z')
|
||||||
*p = *p - 'A' + 'a';
|
*p = *p - 'A' + 'a';
|
||||||
|
|
||||||
return p;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ignore_file(const char *filename) {
|
bool ignore_file(const char *filename) {
|
||||||
|
Loading…
Reference in New Issue
Block a user