From 41f3d1de315bb454750d75c8f6a05e0bc353bf35 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 5 Apr 2014 08:17:48 +0000 Subject: Silence a warning with GCC that was breaking the build with Juniper's GCC. Reviewed by: marcel --- lib/libc/stdlib/qsort_r.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib/qsort_r.c') diff --git a/lib/libc/stdlib/qsort_r.c b/lib/libc/stdlib/qsort_r.c index 02469db..f489d31 100644 --- a/lib/libc/stdlib/qsort_r.c +++ b/lib/libc/stdlib/qsort_r.c @@ -8,9 +8,10 @@ #define I_AM_QSORT_R #include "qsort.c" +typedef DECLARE_BLOCK(int, qsort_block, const void *, const void *); + void -qsort_b(void *base, size_t nel, size_t width, - DECLARE_BLOCK(int, compar, const void *, const void *)) +qsort_b(void *base, size_t nel, size_t width, qsort_block compar) { qsort_r(base, nel, width, compar, (int (*)(void *, const void *, const void *)) -- cgit v1.1