tree-wide: CMP()ify all the things

Let's employ coccinelle to fix everything up automatically for us.
This commit is contained in:
Lennart Poettering
2018-10-16 17:45:53 +02:00
parent f7eed93f15
commit 6dd91b3682
8 changed files with 40 additions and 67 deletions
+1 -6
View File
@@ -398,12 +398,7 @@ int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m) {
if (r != 0)
return r;
if (n < m)
return -1;
else if (n > m)
return 1;
else
return 0;
return CMP(n, m);
}
bool chars_intersect(const char *a, const char *b) {