]> granicus.if.org Git - php/commitdiff
fix build problem for interbase
authorWez Furlong <wez@php.net>
Sat, 16 Mar 2002 18:43:41 +0000 (18:43 +0000)
committerWez Furlong <wez@php.net>
Sat, 16 Mar 2002 18:43:41 +0000 (18:43 +0000)
ext/interbase/interbase.c

index 22b2baf7baee16a7e9e0fb1e15a5275eae29b607..42b4a9905c40e796bb6b6870cca96b65ffc7a0d5 100644 (file)
@@ -2870,7 +2870,6 @@ PHP_FUNCTION(ibase_blob_import)
        ibase_blob_handle ib_blob;
        ibase_db_link *ib_link;
        char bl_data[IBASE_BLOB_SEG]; /* FIXME? blob_seg_size parameter?         */
-       void * what;
        int type;
        php_stream * stream;
 
@@ -2916,7 +2915,7 @@ PHP_FUNCTION(ibase_blob_import)
 
        size = 0;
 
-       while(b = php_stream_read((php_stream*)what, bl_data, 1, sizeof(bl_data)) > 0)  {
+       while(b = php_stream_read(stream, bl_data, sizeof(bl_data)) > 0)        {
                if (isc_put_segment(IB_STATUS, &ib_blob.bl_handle, b, bl_data)) {
                        _php_ibase_error();
                        RETURN_FALSE;