summaryrefslogtreecommitdiff
path: root/main/php_scandir.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-03 16:09:48 +0100
committerAnatol Belski <ab@php.net>2015-02-03 17:52:18 +0100
commitd920cc427ba568bd75bb21ffd43b804b9efb8c09 (patch)
tree14dca8ae3fdcc3546193c9e51b176dffe76cf403 /main/php_scandir.c
parentfe39840450f9e7a5878f2dc1bd41e85c1032e743 (diff)
downloadphp-git-d920cc427ba568bd75bb21ffd43b804b9efb8c09.tar.gz
fix incompatible pointer warning
php_alphasort() isn't directly compatible with qsort() cb def
Diffstat (limited to 'main/php_scandir.c')
-rw-r--r--main/php_scandir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_scandir.c b/main/php_scandir.c
index 9f6517dbf3..67bb25696c 100644
--- a/main/php_scandir.c
+++ b/main/php_scandir.c
@@ -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;