iliaa                                    Mon, 20 Dec 2010 23:00:11 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306527

Log:
Fixed compiler warnings

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/dba/libflatfile/flatfile.c
    U   php/php-src/trunk/ext/dba/libflatfile/flatfile.c

Modified: php/php-src/branches/PHP_5_3/ext/dba/libflatfile/flatfile.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/dba/libflatfile/flatfile.c 2010-12-20 
22:32:05 UTC (rev 306526)
+++ php/php-src/branches/PHP_5_3/ext/dba/libflatfile/flatfile.c 2010-12-20 
23:00:11 UTC (rev 306527)
@@ -54,24 +54,24 @@
                        return 1;
                }
                php_stream_seek(dba->fp, 0L, SEEK_END);
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", key_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) 
< key_datum.dsize) {
                        return -1;
                }
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", value_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", 
value_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, value_datum.dptr, 
value_datum.dsize) < value_datum.dsize) {
                        return -1;
                }
        } else { /* FLATFILE_REPLACE */
                flatfile_delete(dba, key_datum TSRMLS_CC);
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", key_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) 
< key_datum.dsize) {
                        return -1;
                }
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", value_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", 
value_datum.dsize);
                if (php_stream_write(dba->fp, value_datum.dptr, 
value_datum.dsize) < value_datum.dsize) {
                        return -1;
                }

Modified: php/php-src/trunk/ext/dba/libflatfile/flatfile.c
===================================================================
--- php/php-src/trunk/ext/dba/libflatfile/flatfile.c    2010-12-20 22:32:05 UTC 
(rev 306526)
+++ php/php-src/trunk/ext/dba/libflatfile/flatfile.c    2010-12-20 23:00:11 UTC 
(rev 306527)
@@ -53,24 +53,24 @@
                        return 1;
                }
                php_stream_seek(dba->fp, 0L, SEEK_END);
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", key_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) 
< key_datum.dsize) {
                        return -1;
                }
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", value_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", 
value_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, value_datum.dptr, 
value_datum.dsize) < value_datum.dsize) {
                        return -1;
                }
        } else { /* FLATFILE_REPLACE */
                flatfile_delete(dba, key_datum TSRMLS_CC);
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", key_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
                php_stream_flush(dba->fp);
                if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) 
< key_datum.dsize) {
                        return -1;
                }
-               php_stream_printf(dba->fp TSRMLS_CC, "%d\n", value_datum.dsize);
+               php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", 
value_datum.dsize);
                if (php_stream_write(dba->fp, value_datum.dptr, 
value_datum.dsize) < value_datum.dsize) {
                        return -1;
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to