From: Jeff Trawick Date: Sun, 24 Sep 2000 13:04:31 +0000 (+0000) Subject: Clean up a few warnings in core_filter(). X-Git-Tag: APACHE_2_0_ALPHA_7~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec6cfbd4edfdb464075c46b477fcb9fb2194fe44;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index e9023411381..b5877daf10f 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;