From ec6cfbd4edfdb464075c46b477fcb9fb2194fe44 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 24 Sep 2000 13:04:31 +0000 Subject: [PATCH] Clean up a few warnings in core_filter(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86311 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index e902341138..b5877daf10 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -3118,7 +3118,7 @@ static int core_filter(ap_filter_t *f, ap_bucket_brigade *b) request_rec *r = f->r; apr_pool_t *p = r->pool; apr_status_t rv; - apr_ssize_t bytes_sent = 0, len = 0, written; + apr_ssize_t bytes_sent = 0, len = 0; ap_bucket *e; @@ -3180,8 +3180,8 @@ static int core_filter(ap_filter_t *f, ap_bucket_brigade *b) break; default: { - char *str; - apr_size_t n; + const char *str; + apr_ssize_t n; rv = e->read(e, &str, &n, 0); if (n) { len += n; @@ -3198,7 +3198,7 @@ static int core_filter(ap_filter_t *f, ap_bucket_brigade *b) } iov = (struct iovec *) apr_push_array(vec_trailers); } - iov->iov_base = str; + iov->iov_base = (char *)str; iov->iov_len = n; } break; -- 2.50.1