svn commit: r319290 - stable/10/lib/libc/stdlib

Xin LI delphij at FreeBSD.org
Wed May 31 06:19:14 UTC 2017


Author: delphij
Date: Wed May 31 06:19:12 2017
New Revision: 319290
URL: https://svnweb.freebsd.org/changeset/base/319290

Log:
  Partial MFC r288030 (rodrigc):
  
  Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

Modified:
  stable/10/lib/libc/stdlib/qsort.c

Modified: stable/10/lib/libc/stdlib/qsort.c
==============================================================================
--- stable/10/lib/libc/stdlib/qsort.c	Wed May 31 06:13:33 2017	(r319289)
+++ stable/10/lib/libc/stdlib/qsort.c	Wed May 31 06:19:12 2017	(r319290)
@@ -64,9 +64,7 @@ static inline void	 swapfunc(char *, char *, 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)


More information about the svn-src-all mailing list