diff options
Diffstat (limited to 'src/lib/libc')
-rw-r--r-- | src/lib/libc/stdlib/qsort.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/qsort.c b/src/lib/libc/stdlib/qsort.c index fe757b9332..6606c877bb 100644 --- a/src/lib/libc/stdlib/qsort.c +++ b/src/lib/libc/stdlib/qsort.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | /*static char sccsid[] = "from: @(#)qsort.c 8.1 (Berkeley) 6/4/93";*/ | 35 | /*static char sccsid[] = "from: @(#)qsort.c 8.1 (Berkeley) 6/4/93";*/ |
36 | static char *rcsid = "$Id: qsort.c,v 1.2 1996/03/25 22:16:40 tholo Exp $"; | 36 | static char *rcsid = "$Id: qsort.c,v 1.3 1996/03/25 22:34:43 tholo Exp $"; |
37 | #endif /* LIBC_SCCS and not lint */ | 37 | #endif /* LIBC_SCCS and not lint */ |
38 | 38 | ||
39 | #include <sys/types.h> | 39 | #include <sys/types.h> |
@@ -93,13 +93,14 @@ med3(a, b, c, cmp) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | void | 95 | void |
96 | qsort(a, n, es, cmp) | 96 | qsort(aa, n, es, cmp) |
97 | void *a; | 97 | void *aa; |
98 | size_t n, es; | 98 | size_t n, es; |
99 | int (*cmp)(); | 99 | int (*cmp)(); |
100 | { | 100 | { |
101 | char *pa, *pb, *pc, *pd, *pl, *pm, *pn; | 101 | char *pa, *pb, *pc, *pd, *pl, *pm, *pn; |
102 | int d, r, swaptype, swap_cnt; | 102 | int d, r, swaptype, swap_cnt; |
103 | register char *a = aa; | ||
103 | 104 | ||
104 | loop: SWAPINIT(a, es); | 105 | loop: SWAPINIT(a, es); |
105 | swap_cnt = 0; | 106 | swap_cnt = 0; |