summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2009-05-19 16:03:36 +0000
committerKalle Sommer Nielsen <kalle@php.net>2009-05-19 16:03:36 +0000
commit01fc4ed1d63c6a292fa89c303cb6b7ff824bc84a (patch)
tree10a8b847d7be297817551e598d6834a7aee03d06
parentc80f0bf76928385c49a73bd855fdc603fdffb1ec (diff)
downloadphp-git-01fc4ed1d63c6a292fa89c303cb6b7ff824bc84a.tar.gz
MFH: Fix compiler warnings
-rw-r--r--ext/pgsql/pgsql.c2
-rw-r--r--sapi/cgi/cgi_main.c3
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) {