From: Alejandro Colomar Date: Thu, 14 Nov 2024 21:08:01 +0000 (+0100) Subject: lib/adds.h: addslN(): Use QSORT() instead of its pattern X-Git-Tag: 4.17.3~33 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4a0dbb5d856b9694fceb928b31e29760e587315;p=thirdparty%2Fshadow.git lib/adds.h: addslN(): Use QSORT() instead of its pattern Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- 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]);