diff options
Diffstat (limited to 'dirent')
-rw-r--r-- | dirent/alphasort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dirent/alphasort.c b/dirent/alphasort.c index 6c62380e99..95e0da056c 100644 --- a/dirent/alphasort.c +++ b/dirent/alphasort.c @@ -22,6 +22,6 @@ int alphasort (const void *a, const void *b) { - return strcmp (((struct dirent *) a)->d_name, - ((struct dirent *) b)->d_name); + return strcmp ((*(const struct dirent **) a)->d_name, + (*(const struct dirent **) b)->d_name); } |