mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
fix incompatible pointer warning
php_alphasort() isn't directly compatible with qsort() cb def
This commit is contained in:
@@ -112,7 +112,7 @@ PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*se
|
||||
*namelist = vector;
|
||||
|
||||
if (compare) {
|
||||
qsort (*namelist, nfiles, sizeof(struct dirent *), compare);
|
||||
qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare);
|
||||
}
|
||||
|
||||
return nfiles;
|
||||
|
||||
Reference in New Issue
Block a user