From e5c9c8533d352dd8dd61828f0f009d26eb5876ed Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 20 Jan 2010 07:36:29 +0000 Subject: [PATCH] Style: rename internal function to opendir_compar() Pointed by: bde --- lib/libc/gen/opendir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index dd6d0423bc4d..b312c89d76a7 100644 --- a/lib/libc/gen/opendir.c +++ b/lib/libc/gen/opendir.c @@ -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 *name, int flags) * This sort must be stable. */ mergesort(dpv, n, sizeof(*dpv), - opendir_sort); + opendir_compar); dpv[n] = NULL; xp = NULL;