Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 06:19:13 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r319290 - stable/10/lib/libc/stdlib
Message-ID:  <201705310619.v4V6JDsP060645@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705310619.v4V6JDsP060645>