]> granicus.if.org Git - php/commitdiff
MFB: Fixed compiler warnings
authorIlia Alshanetsky <iliaa@php.net>
Mon, 16 Oct 2006 15:42:23 +0000 (15:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 16 Oct 2006 15:42:23 +0000 (15:42 +0000)
ext/zlib/zlib_filter.c

index d944dfbfcf3ffbb5165bd9c773638dec292e601a..854fe40b6e2de291db2241c1250c2f5b7ddbd1d3 100644 (file)
@@ -292,7 +292,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
        /* Create this filter */
        data = pecalloc(1, sizeof(php_zlib_filter_data), persistent);
        if (!data) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes", sizeof(php_zlib_filter_data));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", sizeof(php_zlib_filter_data));
                return NULL;
        }
 
@@ -304,14 +304,14 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
        data->strm.avail_out = data->outbuf_len = data->inbuf_len = 2048;
        data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent);
        if (!data->inbuf) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes", data->inbuf_len);
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", data->inbuf_len);
                pefree(data, persistent);
                return NULL;
        }
        data->strm.avail_in = 0;
        data->strm.next_out = data->outbuf = (Bytef *) pemalloc(data->outbuf_len, persistent);
        if (!data->outbuf) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes", data->outbuf_len);
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", data->outbuf_len);
                pefree(data->inbuf, persistent);
                pefree(data, persistent);
                return NULL;