]> granicus.if.org Git - php/commitdiff
- silent compiler warning
authorPierre Joye <pajoye@php.net>
Mon, 20 Apr 2009 08:28:14 +0000 (08:28 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 20 Apr 2009 08:28:14 +0000 (08:28 +0000)
main/streams/cast.c

index 0f1503dc5ea061528b89975a566f8a7bc03b30f1..db806208524faa8e93a982fccdbeff5393651484 100644 (file)
@@ -219,7 +219,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
                                if (ret != SUCCESS) {
                                        php_stream_close(newstream);
                                } else {
-                                       int retcode = php_stream_cast(newstream, castas | flags, ret, show_err);
+                                       int retcode = php_stream_cast(newstream, castas | flags, (void**)ret, show_err);
 
                                        if (retcode == SUCCESS)
                                                rewind(*(FILE**)ret);