Browse Source

Cannot do operations on a void pointer

OPENBSD_2_0
tholo 29 years ago
parent
commit
352b163d5e
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/lib/libc/stdlib/qsort.c

+ 4
- 3
src/lib/libc/stdlib/qsort.c View File

@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
/*static char sccsid[] = "from: @(#)qsort.c 8.1 (Berkeley) 6/4/93";*/ /*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 */ #endif /* LIBC_SCCS and not lint */
#include <sys/types.h> #include <sys/types.h>
@ -93,13 +93,14 @@ med3(a, b, c, cmp)
} }
void void
qsort(a, n, es, cmp)
void *a;
qsort(aa, n, es, cmp)
void *aa;
size_t n, es; size_t n, es;
int (*cmp)(); int (*cmp)();
{ {
char *pa, *pb, *pc, *pd, *pl, *pm, *pn; char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
int d, r, swaptype, swap_cnt; int d, r, swaptype, swap_cnt;
register char *a = aa;
loop: SWAPINIT(a, es); loop: SWAPINIT(a, es);
swap_cnt = 0; swap_cnt = 0;


Loading…
Cancel
Save