From 1403d48d6189f71d450cf9cfda1ac8494e16b20c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 30 Nov 2020 16:23:15 +0100 Subject: sort-util: make cmp_int() generic, so that we can reuse it elsewhere --- src/basic/sort-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basic/sort-util.h') 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); -- cgit v1.2.3