summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/qsort.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-25 22:16:37 +0000
committertholo <tholo@openbsd.org>1996-03-25 22:16:37 +0000
commitd6b090604520ff153cf625a21b175c2788328f20 (patch)
tree40f8889a8da6ddc0a6e965160d7fa78edc5c0986 /lib/libc/stdlib/qsort.c
parentProtect internal mcount symbol from lint(1) (diff)
downloadwireguard-openbsd-d6b090604520ff153cf625a21b175c2788328f20.tar.xz
wireguard-openbsd-d6b090604520ff153cf625a21b175c2788328f20.zip
Add prototypes for internal functions
Change inline to __inline
Diffstat (limited to 'lib/libc/stdlib/qsort.c')
-rw-r--r--lib/libc/stdlib/qsort.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdlib/qsort.c b/lib/libc/stdlib/qsort.c
index c06bd540546..fe757b9332c 100644
--- a/lib/libc/stdlib/qsort.c
+++ b/lib/libc/stdlib/qsort.c
@@ -33,14 +33,14 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char sccsid[] = "from: @(#)qsort.c 8.1 (Berkeley) 6/4/93";*/
-static char *rcsid = "$Id: qsort.c,v 1.1.1.1 1995/10/18 08:42:18 deraadt Exp $";
+static char *rcsid = "$Id: qsort.c,v 1.2 1996/03/25 22:16:40 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <stdlib.h>
-static inline char *med3 __P((char *, char *, char *, int (*)()));
-static inline void swapfunc __P((char *, char *, int, int));
+static __inline char *med3 __P((char *, char *, char *, int (*)()));
+static __inline void swapfunc __P((char *, char *, int, int));
#define min(a, b) (a) < (b) ? a : b
@@ -61,7 +61,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;
@@ -82,7 +82,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;
int (*cmp)();