]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
These need to be signed longs... cast as needed.
authorJim Jagielski <jim@apache.org>
Mon, 27 Aug 2018 12:17:46 +0000 (12:17 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 27 Aug 2018 12:17:46 +0000 (12:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1839303 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_scgi.c
modules/proxy/mod_proxy_uwsgi.c

index a276fe63b71dee3d081dcb633c13d13269c0a61f..493757d3c92842654177b2c10a48e5ae47368da0 100644 (file)
@@ -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;
             }
index 3e04fdeb387b907f47dcf7dac9403ff781fd5670..6f33e196d72a9af1e25c86dc83f0a86416e83b6c 100644 (file)
@@ -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;
             }