diff options
author | tholo <> | 1996-03-25 22:16:40 +0000 |
---|---|---|
committer | tholo <> | 1996-03-25 22:16:40 +0000 |
commit | 60fdcd77ab879ee06640599bcf2fbbea95088eac (patch) | |
tree | c8a1c0f49daf4580e484d7d831367c4c9eede8f5 /src/lib/libc/stdlib/qsort.c | |
parent | 26bf2499c42c994d91e3a86ae74b1a2d8b829c9f (diff) | |
download | openbsd-60fdcd77ab879ee06640599bcf2fbbea95088eac.tar.gz openbsd-60fdcd77ab879ee06640599bcf2fbbea95088eac.tar.bz2 openbsd-60fdcd77ab879ee06640599bcf2fbbea95088eac.zip |
Add prototypes for internal functions
Change inline to __inline
Diffstat (limited to 'src/lib/libc/stdlib/qsort.c')
-rw-r--r-- | src/lib/libc/stdlib/qsort.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/qsort.c b/src/lib/libc/stdlib/qsort.c index c06bd54054..fe757b9332 100644 --- a/src/lib/libc/stdlib/qsort.c +++ b/src/lib/libc/stdlib/qsort.c | |||
@@ -33,14 +33,14 @@ | |||
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.1.1.1 1995/10/18 08:42:18 deraadt Exp $"; | 36 | static char *rcsid = "$Id: qsort.c,v 1.2 1996/03/25 22:16:40 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> |
40 | #include <stdlib.h> | 40 | #include <stdlib.h> |
41 | 41 | ||
42 | static inline char *med3 __P((char *, char *, char *, int (*)())); | 42 | static __inline char *med3 __P((char *, char *, char *, int (*)())); |
43 | static inline void swapfunc __P((char *, char *, int, int)); | 43 | static __inline void swapfunc __P((char *, char *, int, int)); |
44 | 44 | ||
45 | #define min(a, b) (a) < (b) ? a : b | 45 | #define min(a, b) (a) < (b) ? a : b |
46 | 46 | ||
@@ -61,7 +61,7 @@ static inline void swapfunc __P((char *, char *, int, int)); | |||
61 | #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ | 61 | #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ |
62 | es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1; | 62 | es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1; |
63 | 63 | ||
64 | static inline void | 64 | static __inline void |
65 | swapfunc(a, b, n, swaptype) | 65 | swapfunc(a, b, n, swaptype) |
66 | char *a, *b; | 66 | char *a, *b; |
67 | int n, swaptype; | 67 | int n, swaptype; |
@@ -82,7 +82,7 @@ swapfunc(a, b, n, swaptype) | |||
82 | 82 | ||
83 | #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) | 83 | #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) |
84 | 84 | ||
85 | static inline char * | 85 | static __inline char * |
86 | med3(a, b, c, cmp) | 86 | med3(a, b, c, cmp) |
87 | char *a, *b, *c; | 87 | char *a, *b, *c; |
88 | int (*cmp)(); | 88 | int (*cmp)(); |