]> granicus.if.org Git - apache/commitdiff
Fix warnings about byte count type on Darwin
authorChuck Murcko <chuck@apache.org>
Fri, 13 Apr 2001 08:12:52 +0000 (08:12 +0000)
committerChuck Murcko <chuck@apache.org>
Fri, 13 Apr 2001 08:12:52 +0000 (08:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88844 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_connect.c

index b6adb024d2e065571246db88bc5c90581fdec45e..2c9bfc5c9e5307437ca9afa347c0d1b97b8402b4 100644 (file)
@@ -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;