diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-12-20 23:00:11 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-12-20 23:00:11 +0000 |
commit | c9459ed7e750f73009263eb39790fd9bd31b2c15 (patch) | |
tree | cbb87b011fa14897ac08b0f170bf7b9f24817b28 /ext | |
parent | 7f055f54a2f63a1601341cf4e63dfa00334944f3 (diff) | |
download | php-git-c9459ed7e750f73009263eb39790fd9bd31b2c15.tar.gz |
Fixed compiler warnings
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dba/libflatfile/flatfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dba/libflatfile/flatfile.c b/ext/dba/libflatfile/flatfile.c index 50b84d2808..e81b8ea1de 100644 --- a/ext/dba/libflatfile/flatfile.c +++ b/ext/dba/libflatfile/flatfile.c @@ -53,24 +53,24 @@ int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode T 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; } |