]> granicus.if.org Git - php/commitdiff
MFH: Fix compiler warnings
authorKalle Sommer Nielsen <kalle@php.net>
Tue, 19 May 2009 16:03:36 +0000 (16:03 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Tue, 19 May 2009 16:03:36 +0000 (16:03 +0000)
ext/pgsql/pgsql.c
sapi/cgi/cgi_main.c

index 8a2dff0978a0ec1c04f5a6025dc7306103a80d02..f067297f71a46425d9c78196248caa7903dfd0f3 100644 (file)
@@ -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;
 
index 711f212875fb66cc3a94bb354f55d51c4f009b5e..302c26c1eb3d025e73e170dd9b8a4515ad107ccc 100644 (file)
@@ -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) {