The alphasort and versionsort functions take arguments of type const struct dirent **, not const void *. Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx> --- man3/scandir.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/scandir.3 b/man3/scandir.3 index aee2c86..7fea26e 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -73,9 +73,9 @@ a directory for matching entries .BI "int (*" compar ")(const struct dirent **, const struct dirent **));" .RE .sp -.BI "int alphasort(const void *" a ", const void *" b ); +.BI "int alphasort(const struct dirent **" a ", const struct dirent **" b ); .sp -.BI "int versionsort(const void *" a ", const void *" b ); +.BI "int versionsort(const struct dirent **" a ", const struct dirent **" b ); .BR "#include <fcntl.h>" " /* Definition of AT_* constants */" .B #include <dirent.h> -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html