summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/heapsort.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-14 18:44:13 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-14 18:44:13 +0000
commit03b17210edf9302037068143643c1e06386de92e (patch)
tree9233dab12e187d6c5c5baddafab2900cdbf513ee /lib/libc/stdlib/heapsort.c
parent5ad1f2444d736f306932d8a69b8357c63297cc83 (diff)
downloadFreeBSD-src-03b17210edf9302037068143643c1e06386de92e.zip
FreeBSD-src-03b17210edf9302037068143643c1e06386de92e.tar.gz
Use ANSI C prototypes.
Eliminates gcc 4.9 warnings.
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