Skip to content

Commit d920cc4

Browse files
committed
fix incompatible pointer warning
php_alphasort() isn't directly compatible with qsort() cb def
1 parent fe39840 commit d920cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_scandir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*se
112112
*namelist = vector;
113113

114114
if (compare) {
115-
qsort (*namelist, nfiles, sizeof(struct dirent *), compare);
115+
qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare);
116116
}
117117

118118
return nfiles;

0 commit comments

Comments
 (0)