tree-wide: CMP()ify all the things
Let's employ coccinelle to fix everything up automatically for us.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user