From: Jeff Trawick Date: Fri, 18 Aug 2000 18:48:11 +0000 (+0000) Subject: Fix type of bytes_sent parm passed to ap_bucket_mmap_create(). X-Git-Tag: APACHE_2_0_ALPHA_7~252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfee69c79bedd8b9305ea10f55662ea906bbbcf3;p=thirdparty%2Fapache%2Fhttpd.git Fix type of bytes_sent parm passed to ap_bucket_mmap_create(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86106 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 4cebcce4e89..864782d0187 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1913,7 +1913,7 @@ API_EXPORT(void) ap_send_http_header(request_rec *r) } /* finalize_request_protocol is called at completion of sending the - * response. It's sole purpose is to send the terminating protocol + * response. Its sole purpose is to send the terminating protocol * information for any wrappers around the response message body * (i.e., transfer encodings). It should have been named finalize_response. */ @@ -1921,7 +1921,7 @@ API_EXPORT(void) ap_finalize_request_protocol(request_rec *r) { /* tell the filter chain there is no more content coming */ end_output_stream(r); - } +} /* Here we deal with getting the request message body from the client. * Whether or not the request contains a body is signaled by the presence @@ -2513,7 +2513,7 @@ API_EXPORT(long) ap_send_fb_length(BUFF *fb, request_rec *r, long length) API_EXPORT(size_t) ap_send_mmap(apr_mmap_t *mm, request_rec *r, size_t offset, size_t length) { - size_t bytes_sent = 0; + apr_ssize_t bytes_sent = 0; ap_bucket_brigade *bb = NULL; /* WE probably need to do something to make sure we are respecting the @@ -2522,7 +2522,7 @@ API_EXPORT(size_t) ap_send_mmap(apr_mmap_t *mm, request_rec *r, size_t offset, */ bb = ap_brigade_create(r->pool); ap_brigade_append_buckets(bb, - ap_bucket_mmap_create(mm, mm->size, &bytes_sent)); + ap_bucket_mmap_create(mm, mm->size, &bytes_sent)); bytes_sent = ap_pass_brigade(r->filters, bb); return bytes_sent;