aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/benchmark/zlib.c')
-rw-r--r--modules/benchmark/zlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/benchmark/zlib.c b/modules/benchmark/zlib.c
index 2045969f..3f2c1291 100644
--- a/modules/benchmark/zlib.c
+++ b/modules/benchmark/zlib.c
@@ -35,15 +35,14 @@
static unsigned int zlib_errors = 0;
static gpointer zlib_for(void *in_data, gint thread_number) {
- char *compressed;
+ guchar *compressed;
uLong bound = compressBound(BENCH_DATA_SIZE);
- unsigned int i;
compressed = malloc(bound);
if (!compressed)
return NULL;
- char uncompressed[BENCH_DATA_SIZE];
+ guchar uncompressed[BENCH_DATA_SIZE];
uLong compressedBound = bound;
uLong destBound = sizeof(uncompressed);