summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-03-25 22:34:44 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-03-25 22:34:44 +0000
commit056407260bf2539719751106b53b00fcd4896619 (patch)
tree5b7150cd41b2858bf48c298fcc2fe32e03d086ba /lib/libc
parentce6430faf0360a20d82c806b343b5af6dc8aab34 (diff)
Cannot do operations on a void pointer
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/qsort.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/qsort.c b/lib/libc/stdlib/qsort.c
index fe757b9332c..6606c877bbc 100644
--- a/lib/libc/stdlib/qsort.c
+++ b/lib/libc/stdlib/qsort.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char sccsid[] = "from: @(#)qsort.c 8.1 (Berkeley) 6/4/93";*/
-static char *rcsid = "$Id: qsort.c,v 1.2 1996/03/25 22:16:40 tholo Exp $";
+static char *rcsid = "$Id: qsort.c,v 1.3 1996/03/25 22:34:43 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -93,13 +93,14 @@ med3(a, b, c, cmp)
}
void
-qsort(a, n, es, cmp)
- void *a;
+qsort(aa, n, es, cmp)
+ void *aa;
size_t n, es;
int (*cmp)();
{
char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
int d, r, swaptype, swap_cnt;
+ register char *a = aa;
loop: SWAPINIT(a, es);
swap_cnt = 0;