diff options
Diffstat (limited to 'libc/misc/dirent/alphasort.c')
-rw-r--r-- | libc/misc/dirent/alphasort.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/misc/dirent/alphasort.c b/libc/misc/dirent/alphasort.c index 70aa2a516..eb0dbf238 100644 --- a/libc/misc/dirent/alphasort.c +++ b/libc/misc/dirent/alphasort.c @@ -8,11 +8,8 @@ #include <string.h> #include "dirstream.h" -/* Experimentally off - libc_hidden_proto(strcmp) */ - -int alphasort(const void * a, const void * b) +int alphasort(const struct dirent **a, const struct dirent **b) { - return strcmp ((*(const struct dirent **) a)->d_name, - (*(const struct dirent **) b)->d_name); + return strcmp((*a)->d_name, (*b)->d_name); } |