From: Jim Jagielski Date: Mon, 27 Aug 2018 12:17:46 +0000 (+0000) Subject: These need to be signed longs... cast as needed. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b13b720800a9f3e8c19899c0e61542f91f2f88;p=thirdparty%2Fapache%2Fhttpd.git These need to be signed longs... cast as needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1839303 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_scgi.c b/modules/proxy/mod_proxy_scgi.c index a276fe63b71..493757d3c92 100644 --- a/modules/proxy/mod_proxy_scgi.c +++ b/modules/proxy/mod_proxy_scgi.c @@ -19,7 +19,7 @@ * Proxy backend module for the SCGI protocol * (http://python.ca/scgi/protocol.txt) * - * André Malo (nd/perlig.de), August 2007 + * Andr� Malo (nd/perlig.de), August 2007 */ #define APR_WANT_MEMFUNC @@ -334,11 +334,11 @@ static int send_request_body(request_rec *r, proxy_conn_rec *conn) if (ap_should_client_block(r)) { char *buf = apr_palloc(r->pool, AP_IOBUFSIZE); int status; - apr_size_t readlen; + long readlen; readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE); while (readlen > 0) { - status = sendall(conn, buf, readlen, r); + status = sendall(conn, buf, (apr_size_t)readlen, r); if (status != OK) { return HTTP_SERVICE_UNAVAILABLE; } diff --git a/modules/proxy/mod_proxy_uwsgi.c b/modules/proxy/mod_proxy_uwsgi.c index 3e04fdeb387..6f33e196d72 100644 --- a/modules/proxy/mod_proxy_uwsgi.c +++ b/modules/proxy/mod_proxy_uwsgi.c @@ -212,11 +212,11 @@ static int uwsgi_send_body(request_rec *r, proxy_conn_rec * conn) if (ap_should_client_block(r)) { char *buf = apr_palloc(r->pool, AP_IOBUFSIZE); int status; - apr_size_t readlen; + long readlen; readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE); while (readlen > 0) { - status = uwsgi_send(conn, buf, readlen, r); + status = uwsgi_send(conn, buf, (apr_size_t)readlen, r); if (status != OK) { return HTTP_SERVICE_UNAVAILABLE; }