summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/heapsort.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-09-16 22:35:59 +0000
committerdim <dim@FreeBSD.org>2015-09-16 22:35:59 +0000
commit7b8be099124cf3848a48077ce37206e0ae691839 (patch)
treea10b0ccdaab43b0969228c097ee584f3d7cd047d /lib/libc/stdlib/heapsort.c
parentea5248cdc11d47e16b420831d52143ca4afb904a (diff)
parent5cd19bff79afae9cad8bd02a758c794c84fa06be (diff)
downloadFreeBSD-src-7b8be099124cf3848a48077ce37206e0ae691839.zip
FreeBSD-src-7b8be099124cf3848a48077ce37206e0ae691839.tar.gz
Merge ^/head r287680 through r287877.
Diffstat (limited to 'lib/libc/stdlib/heapsort.c')
-rw-r--r--lib/libc/stdlib/heapsort.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/stdlib/heapsort.c b/lib/libc/stdlib/heapsort.c
index 673a6a1..16c1bfe 100644
--- a/lib/libc/stdlib/heapsort.c
+++ b/lib/libc/stdlib/heapsort.c
@@ -147,16 +147,11 @@ typedef DECLARE_BLOCK(int, heapsort_block, const void *, const void *);
*/
#ifdef I_AM_HEAPSORT_B
int
-heapsort_b(vbase, nmemb, size, compar)
- void *vbase;
- size_t nmemb, size;
- heapsort_block compar;
+heapsort_b(void *vbase, size_t nmemb, size_t size, heapsort_block compar)
#else
int
-heapsort(vbase, nmemb, size, compar)
- void *vbase;
- size_t nmemb, size;
- int (*compar)(const void *, const void *);
+heapsort(void *vbase, size_t nmemb, size_t size,
+ int (*compar)(const void *, const void *))
#endif
{
size_t cnt, i, j, l;
OpenPOWER on IntegriCloud