From a4a0dbb5d856b9694fceb928b31e29760e587315 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 14 Nov 2024 22:08:01 +0100 Subject: [PATCH] lib/adds.h: addslN(): Use QSORT() instead of its pattern Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- lib/adds.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/adds.h b/lib/adds.h index e047d681c..5e4fa2749 100644 --- a/lib/adds.h +++ b/lib/adds.h @@ -11,9 +11,8 @@ #include #include #include -#include -#include "search/cmp/cmp.h" +#include "search/sort/qsort.h" #include "sizeof.h" @@ -56,7 +55,7 @@ addslN(size_t n, long addend[n]) e = errno; while (n > 1) { - qsort(addend, n, sizeof(addend[0]), cmp_long); + QSORT(addend, n); errno = 0; addend[0] = addsl2(addend[0], addend[--n]); -- 2.47.2