summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-05-31 06:19:12 +0000
committerdelphij <delphij@FreeBSD.org>2017-05-31 06:19:12 +0000
commitdf1e55e9dff33f570f15f4919b59fed1521a3936 (patch)
treec667dfc98b3ec1a82acfaa4b793cf15ef629d887 /lib/libc
parent6c25a3b3001c6d7f3751728cc02f53f98010348f (diff)
downloadFreeBSD-src-df1e55e9dff33f570f15f4919b59fed1521a3936.zip
FreeBSD-src-df1e55e9dff33f570f15f4919b59fed1521a3936.tar.gz
Partial MFC r288030 (rodrigc):
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/qsort.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/stdlib/qsort.c b/lib/libc/stdlib/qsort.c
index e97ea92..0881688 100644
--- a/lib/libc/stdlib/qsort.c
+++ b/lib/libc/stdlib/qsort.c
@@ -64,9 +64,7 @@ static inline void swapfunc(char *, char *, int, int, int);
es % sizeof(TYPE) ? 2 : es == sizeof(TYPE) ? 0 : 1;
static inline void
-swapfunc(a, b, n, swaptype_long, swaptype_int)
- char *a, *b;
- int n, swaptype_long, swaptype_int;
+swapfunc( char *a, char *b, int n, int swaptype_long, int swaptype_int)
{
if (swaptype_long <= 1)
swapcode(long, a, b, n)
OpenPOWER on IntegriCloud