]> granicus.if.org Git - apache/commitdiff
Tidy up some types.
authorDavid Reid <dreid@apache.org>
Sun, 15 Oct 2000 22:42:59 +0000 (22:42 +0000)
committerDavid Reid <dreid@apache.org>
Sun, 15 Oct 2000 22:42:59 +0000 (22:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86602 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 47ebb1b4e6275169d74f922bdf67cfe80d2ece46..70266772b8e18c3e70acc61d048ec5591718390f 100644 (file)
@@ -2613,8 +2613,8 @@ static apr_status_t send_the_file(conn_rec *c, apr_file_t *fd,
 {
     apr_status_t rv = APR_SUCCESS;
     apr_int32_t togo;         /* Remaining number of bytes in the file to send */
-    apr_int32_t sendlen;
-    apr_int32_t bytes_sent;
+    apr_size_t sendlen = 0;
+    apr_size_t bytes_sent;
     apr_int32_t i;
     apr_off_t o;              /* Track the file offset for partial writes */
     char buffer[8192];
@@ -2626,7 +2626,6 @@ static apr_status_t send_the_file(conn_rec *c, apr_file_t *fd,
      * XXX: optimization... if headers are less than MIN_WRITE_SIZE, copy 
      * them into buffer
      */
-    sendlen = 0;
     if ( hdtr && hdtr->numheaders > 0 ) {
         for (i = 0; i < hdtr->numheaders; i++) {
             sendlen += hdtr->headers[i].iov_len;