wez Sun Mar 7 17:06:37 2004 EDT
Modified files:
/php-src/main/streams streams.c
Log:
add cast for qsort compare function.
Kinda ugly, but helps assert that we are doing the right thing as well as
kill the warning there.
http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.51&r2=1.52&ty=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.51 php-src/main/streams/streams.c:1.52
--- php-src/main/streams/streams.c:1.51 Sun Mar 7 16:36:55 2004
+++ php-src/main/streams/streams.c Sun Mar 7 17:06:36 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.51 2004/03/07 21:36:55 wez Exp $ */
+/* $Id: streams.c,v 1.52 2004/03/07 22:06:36 wez Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1891,7 +1891,7 @@
*namelist = vector;
if (compare) {
- qsort(*namelist, nfiles, sizeof(php_stream_dirent *), compare);
+ qsort(*namelist, nfiles, sizeof(php_stream_dirent *), (int(*)(const
void *, const void *))compare);
}
return nfiles;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php