From 01fc4ed1d63c6a292fa89c303cb6b7ff824bc84a Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 19 May 2009 16:03:36 +0000 Subject: [PATCH] MFH: Fix compiler warnings --- ext/pgsql/pgsql.c | 2 +- sapi/cgi/cgi_main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 8a2dff0978..f067297f71 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2650,7 +2650,7 @@ PHP_FUNCTION(pg_fetch_all_columns) zval *result; PGresult *pgsql_result; pgsql_result_handle *pg_result; - long colno=0; + unsigned long colno=0; int pg_numrows, pg_row; size_t num_fields; diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 711f212875..302c26c1eb 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -471,7 +471,8 @@ static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) static int sapi_cgi_read_post(char *buffer, uint count_bytes TSRMLS_DC) { - int read_bytes=0, tmp_read_bytes; + uint read_bytes = 0; + int tmp_read_bytes; count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length - SG(read_post_bytes)); while (read_bytes < count_bytes) { -- 2.50.1