diff --git a/preload/interface.master b/preload/interface.master index 55a9481..21b9734 100644 --- a/preload/interface.master +++ b/preload/interface.master @@ -407,7 +407,8 @@ WRAP: int rmdir(const char *pathname) : \ #ifdef HAVE_SCANDIR #ifdef HAVE_LINUX_SCANDIR WRAP: int scandir(const char *dir, struct dirent ***namelist, \ - SCANDIR_TYPE_ARG3, int(*compar)(const void *, const void *)) : \ + SCANDIR_TYPE_ARG3, \ + int(*compar)(const struct dirent **, const struct dirent **)) : \ map(dir) hardcode_param(3,filter) #endif #ifdef HAVE_OSX_SCANDIR @@ -417,7 +418,7 @@ WRAP: int scandir(const char *dirname, struct dirent ***namelist, int (*select)( #ifdef HAVE_SCANDIR64 WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \ int(*filter)(const struct dirent64 *), \ - int(*compar)(const void *, const void *)) : \ + int(*compar)(const struct dirent64 **, const struct dirent64 **)) : \ map(dir) #endif #ifdef HAVE_SETXATTR