From: Evgeny Kotkov Date: Mon, 28 Nov 2016 18:40:23 +0000 (+0000) Subject: mod_brotli: Explicitly cast 'const uint8_t *' to 'const char *' when using X-Git-Tag: 2.5.0-alpha~966 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3c7e4780f257ce062347879b03b41160244be90;p=apache mod_brotli: Explicitly cast 'const uint8_t *' to 'const char *' when using the data received from Brotli to create a bucket. This fixes a /W4 warning in my environment, and should also allow building mod_brotli on NetWare. Submitted by: NormW git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1771791 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_brotli.c b/modules/filters/mod_brotli.c index f8a0a2c487..bea3ec7dd8 100644 --- a/modules/filters/mod_brotli.c +++ b/modules/filters/mod_brotli.c @@ -240,7 +240,7 @@ static apr_status_t process_chunk(brotli_ctx_t *ctx, output = BrotliEncoderTakeOutput(ctx->state, &output_len); ctx->total_out += output_len; - b = apr_bucket_transient_create(output, output_len, + b = apr_bucket_transient_create((const char *)output, output_len, ctx->bb->bucket_alloc); APR_BRIGADE_INSERT_TAIL(ctx->bb, b); @@ -289,7 +289,7 @@ static apr_status_t flush(brotli_ctx_t *ctx, output = BrotliEncoderTakeOutput(ctx->state, &output_len); ctx->total_out += output_len; - b = apr_bucket_heap_create(output, output_len, NULL, + b = apr_bucket_heap_create((const char *)output, output_len, NULL, ctx->bb->bucket_alloc); APR_BRIGADE_INSERT_TAIL(ctx->bb, b); }