diff options
author | Anatol Belski <ab@php.net> | 2015-02-03 16:09:48 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-02-03 17:52:18 +0100 |
commit | d920cc427ba568bd75bb21ffd43b804b9efb8c09 (patch) | |
tree | 14dca8ae3fdcc3546193c9e51b176dffe76cf403 /main/php_scandir.c | |
parent | fe39840450f9e7a5878f2dc1bd41e85c1032e743 (diff) | |
download | php-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.c | 2 |
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; |