Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 07:36:30 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202679 - head/lib/libc/gen
Message-ID:  <201001200736.o0K7aUag047247@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ache
Date: Wed Jan 20 07:36:29 2010
New Revision: 202679
URL: http://svn.freebsd.org/changeset/base/202679

Log:
  Style: rename internal function to opendir_compar()
  
  Pointed by:     bde

Modified:
  head/lib/libc/gen/opendir.c

Modified: head/lib/libc/gen/opendir.c
==============================================================================
--- head/lib/libc/gen/opendir.c	Wed Jan 20 07:28:14 2010	(r202678)
+++ head/lib/libc/gen/opendir.c	Wed Jan 20 07:36:29 2010	(r202679)
@@ -93,7 +93,7 @@ __opendir2(const char *name, int flags)
 }
 
 static int
-opendir_sort(const void *p1, const void *p2)
+opendir_compar(const void *p1, const void *p2)
 {
 
 	return (strcmp((*(const struct dirent **)p1)->d_name,
@@ -249,7 +249,7 @@ __opendir_common(int fd, const char *nam
 				 * This sort must be stable.
 				 */
 				mergesort(dpv, n, sizeof(*dpv),
-				    opendir_sort);
+				    opendir_compar);
 
 				dpv[n] = NULL;
 				xp = NULL;



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