com php-src: fix incompatible pointer warning: main/php_scand ir.c

From: Date: Tue, 03 Feb 2015 16:52:18 +0000
Subject: com php-src: fix incompatible pointer warning: main/php_scand ir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84596@lists.php.net to get a copy of this message
Commit: d920cc427ba568bd75bb21ffd43b804b9efb8c09 Author: Anatol Belski <ab@php.net> Tue, 3 Feb 2015 16:09:48 +0100 Parents: fe39840450f9e7a5878f2dc1bd41e85c1032e743 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d920cc427ba568bd75bb21ffd43b804b9efb8c09 Log: fix incompatible pointer warning php_alphasort() isn't directly compatible with qsort() cb def Changed paths: M main/php_scandir.c Diff: diff --git a/main/php_scandir.c b/main/php_scandir.c index 9f6517d..67bb256 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;

« previous php.cvs (#84596) next »