diff options
Diffstat (limited to 'src/lib/libc/stdlib')
-rw-r--r-- | src/lib/libc/stdlib/merge.c | 6 | ||||
-rw-r--r-- | src/lib/libc/stdlib/qsort.c | 4 | ||||
-rw-r--r-- | src/lib/libc/stdlib/radixsort.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/merge.c b/src/lib/libc/stdlib/merge.c index 345eb2fd8b..4ae6488af2 100644 --- a/src/lib/libc/stdlib/merge.c +++ b/src/lib/libc/stdlib/merge.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: merge.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; | 38 | static char *rcsid = "$OpenBSD: merge.c,v 1.5 2002/02/17 19:42:24 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | /* | 41 | /* |
@@ -58,8 +58,8 @@ static char *rcsid = "$OpenBSD: merge.c,v 1.4 2002/02/16 21:27:24 millert Exp $" | |||
58 | #include <stdlib.h> | 58 | #include <stdlib.h> |
59 | #include <string.h> | 59 | #include <string.h> |
60 | 60 | ||
61 | static void setup __P((u_char *, u_char *, size_t, size_t, int (*)())); | 61 | static void setup(u_char *, u_char *, size_t, size_t, int (*)()); |
62 | static void insertionsort __P((u_char *, size_t, size_t, int (*)())); | 62 | static void insertionsort(u_char *, size_t, size_t, int (*)()); |
63 | 63 | ||
64 | #define ISIZE sizeof(int) | 64 | #define ISIZE sizeof(int) |
65 | #define PSIZE sizeof(u_char *) | 65 | #define PSIZE sizeof(u_char *) |
diff --git a/src/lib/libc/stdlib/qsort.c b/src/lib/libc/stdlib/qsort.c index d16ed7b0bd..9b8bb5801b 100644 --- a/src/lib/libc/stdlib/qsort.c +++ b/src/lib/libc/stdlib/qsort.c | |||
@@ -32,13 +32,13 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: qsort.c,v 1.6 2002/02/16 21:27:24 millert Exp $"; | 35 | static char *rcsid = "$OpenBSD: qsort.c,v 1.7 2002/02/17 19:42:24 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/types.h> | 38 | #include <sys/types.h> |
39 | #include <stdlib.h> | 39 | #include <stdlib.h> |
40 | 40 | ||
41 | static __inline char *med3 __P((char *, char *, char *, int (*)())); | 41 | static __inline char *med3(char *, char *, char *, int (*)()); |
42 | static __inline void swapfunc(char *, char *, int, int); | 42 | static __inline void swapfunc(char *, char *, int, int); |
43 | 43 | ||
44 | #define min(a, b) (a) < (b) ? a : b | 44 | #define min(a, b) (a) < (b) ? a : b |
diff --git a/src/lib/libc/stdlib/radixsort.c b/src/lib/libc/stdlib/radixsort.c index 40d7c0789f..e03b479715 100644 --- a/src/lib/libc/stdlib/radixsort.c +++ b/src/lib/libc/stdlib/radixsort.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: radixsort.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; | 38 | static char *rcsid = "$OpenBSD: radixsort.c,v 1.5 2002/02/17 19:42:24 millert Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | /* | 41 | /* |
@@ -63,8 +63,8 @@ typedef struct { | |||
63 | static __inline void simplesort | 63 | static __inline void simplesort |
64 | (const u_char **, int, int, const u_char *, u_int); | 64 | (const u_char **, int, int, const u_char *, u_int); |
65 | static void r_sort_a(const u_char **, int, int, const u_char *, u_int); | 65 | static void r_sort_a(const u_char **, int, int, const u_char *, u_int); |
66 | static void r_sort_b __P((const u_char **, | 66 | static void r_sort_b(const u_char **, |
67 | const u_char **, int, int, const u_char *, u_int)); | 67 | const u_char **, int, int, const u_char *, u_int); |
68 | 68 | ||
69 | #define THRESHOLD 20 /* Divert to simplesort(). */ | 69 | #define THRESHOLD 20 /* Divert to simplesort(). */ |
70 | #define SIZE 512 /* Default stack size. */ | 70 | #define SIZE 512 /* Default stack size. */ |