1
0
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:
Anatol Belski
2015-02-03 16:09:48 +01:00
parent fe39840450
commit d920cc427b

View File

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