summaryrefslogtreecommitdiffstats
path: root/src/basic/sort-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-30 16:23:15 +0100
committerLennart Poettering <lennart@poettering.net>2020-12-17 20:01:02 +0100
commit1403d48d6189f71d450cf9cfda1ac8494e16b20c (patch)
tree37bc745cff5de9ca914654565d20dc65bc56872a /src/basic/sort-util.h
parentcryptenroll: add new "systemd-cryptenroll" tool for enrolling FIDO2+PKCS#11 s... (diff)
downloadsystemd-1403d48d6189f71d450cf9cfda1ac8494e16b20c.tar.xz
systemd-1403d48d6189f71d450cf9cfda1ac8494e16b20c.zip
sort-util: make cmp_int() generic, so that we can reuse it elsewhere
Diffstat (limited to '')
-rw-r--r--src/basic/sort-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/sort-util.h b/src/basic/sort-util.h
index 1d194a1f04..49586a4a24 100644
--- a/src/basic/sort-util.h
+++ b/src/basic/sort-util.h
@@ -68,3 +68,5 @@ static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, __compar_
int (*_func_)(const typeof(p[0])*, const typeof(p[0])*, typeof(userdata)) = func; \
qsort_r_safe((p), (n), sizeof((p)[0]), (__compar_d_fn_t) _func_, userdata); \
})
+
+int cmp_int(const int *a, const int *b);