From: Chuck Murcko Date: Fri, 13 Apr 2001 08:12:52 +0000 (+0000) Subject: Fix warnings about byte count type on Darwin X-Git-Tag: 2.0.17~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8d03d8aed8355e8061792cfd6cc9105105a5c94;p=apache Fix warnings about byte count type on Darwin git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88844 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index b6adb024d2..2c9bfc5c9e 100644 --- a/modules/proxy/proxy_connect.c +++ b/modules/proxy/proxy_connect.c @@ -105,7 +105,8 @@ int ap_proxy_connect_handler(request_rec *r, char *url, apr_pool_t *p = r->pool; apr_socket_t *sock; char buffer[HUGE_STRING_LEN]; - int nbytes, i, err; + int i, err; + apr_size_t nbytes; #if 0 apr_socket_t *client_sock = NULL; @@ -331,7 +332,7 @@ int ap_proxy_connect_handler(request_rec *r, char *url, while(nbytes) { i = nbytes; - if (apr_send(r->connection->client_socket, buffer + o, &i) != APR_SUCCESS) + if (apr_send(r->connection->client_socket, buffer + o, &nbytes) != APR_SUCCESS) break; o += i; nbytes -= i; @@ -354,7 +355,7 @@ int ap_proxy_connect_handler(request_rec *r, char *url, while(nbytes) { i = nbytes; - if (apr_send(sock, buffer + o, &i) != APR_SUCCESS) + if (apr_send(sock, buffer + o, &nbytes) != APR_SUCCESS) break; o += i; nbytes -= i;