Use ANSI C prototypes

This commit is contained in:
Guillem Jover
2014-11-04 05:33:26 +01:00
parent 32388fe59f
commit a6a101effa
5 changed files with 17 additions and 48 deletions

View File

@@ -130,10 +130,8 @@
* only advantage over quicksort is that it requires little additional memory.
*/
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 *))
{
size_t cnt, i, j, l;
char tmp, *tmp1, *tmp2;