sort-util: make cmp_int() generic, so that we can reuse it elsewhere

This commit is contained in:
Lennart Poettering
2020-12-17 20:01:02 +01:00
parent 8710a6818e
commit 1403d48d61
3 changed files with 6 additions and 4 deletions
+4
View File
@@ -27,3 +27,7 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
}
return NULL;
}
int cmp_int(const int *a, const int *b) {
return CMP(*a, *b);
}