scandir.3: Fix prototypes

The alphasort and versionsort functions take arguments of type const
struct dirent **, not const void *.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Rasmus Villemoes 2014-05-21 16:57:49 +02:00 committed by Michael Kerrisk
parent 0c5e1f653a
commit ecf9e5f83e
1 changed files with 2 additions and 2 deletions

View File

@ -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>