From d920cc427ba568bd75bb21ffd43b804b9efb8c09 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 3 Feb 2015 16:09:48 +0100 Subject: [PATCH] fix incompatible pointer warning php_alphasort() isn't directly compatible with qsort() cb def --- main/php_scandir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.49.0