diff options
author | bde <bde@FreeBSD.org> | 1998-04-15 17:47:40 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-04-15 17:47:40 +0000 |
commit | b598f559b2947bb9582b53221185bb27d86cd68f (patch) | |
tree | f0a3b1121a7c68f5b6b630a3981fb3a4fbbc9c43 /sys/libkern | |
parent | 37b60f29dd0d528b8bc950b0b559f304b73db9ec (diff) | |
download | FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.zip FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.tar.gz |
Support compiling with `gcc -ansi'.
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/qsort.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/libkern/qsort.c b/sys/libkern/qsort.c index 5fe730c..1f2812b 100644 --- a/sys/libkern/qsort.c +++ b/sys/libkern/qsort.c @@ -30,14 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: qsort.c,v 1.7 1997/02/22 09:39:58 peter Exp $ */ #include <stdlib.h> typedef int cmp_t __P((const void *, const void *)); -static inline char *med3 __P((char *, char *, char *, cmp_t *)); -static inline void swapfunc __P((char *, char *, int, int)); +static __inline char *med3 __P((char *, char *, char *, cmp_t *)); +static __inline void swapfunc __P((char *, char *, int, int)); #define min(a, b) (a) < (b) ? a : b @@ -58,7 +58,7 @@ static inline void swapfunc __P((char *, char *, int, int)); #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1; -static inline void +static __inline void swapfunc(a, b, n, swaptype) char *a, *b; int n, swaptype; @@ -79,7 +79,7 @@ swapfunc(a, b, n, swaptype) #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) -static inline char * +static __inline char * med3(a, b, c, cmp) char *a, *b, *c; cmp_t *cmp; |