mirror of https://github.com/mkerrisk/man-pages
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:
parent
0c5e1f653a
commit
ecf9e5f83e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue