diff options
author | ache <ache@FreeBSD.org> | 2010-01-20 07:36:29 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2010-01-20 07:36:29 +0000 |
commit | 6180083f03d0f1b2533b0fc8af51e539000418a2 (patch) | |
tree | aa7e74be7420e2bc73d4bbdcc954a7bb75649584 /lib/libc | |
parent | 0e66c9e981374acdea57b75c620676ce7afb15bd (diff) | |
download | FreeBSD-src-6180083f03d0f1b2533b0fc8af51e539000418a2.zip FreeBSD-src-6180083f03d0f1b2533b0fc8af51e539000418a2.tar.gz |
Style: rename internal function to opendir_compar()
Pointed by: bde
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/opendir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index dd6d042..b312c89 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; |