From ceadaf28dfa48dbf238a0ddb884d4c543b4170e8 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 11 Jul 2024 09:22:47 -0700 Subject: [PATCH] Fix test/infcover.c function prototype when ZLIB_CONST defined. --- test/infcover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/infcover.c b/test/infcover.c index da774b5..f1ad0f9 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -1,5 +1,5 @@ /* infcover.c -- test zlib's inflate routines with full code coverage - * Copyright (C) 2011, 2016 Mark Adler + * Copyright (C) 2011, 2016, 2024 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -444,7 +444,7 @@ local void cover_wrap(void) } /* input and output functions for inflateBack() */ -local unsigned pull(void *desc, unsigned char **buf) +local unsigned pull(void *desc, unsigned char z_const **buf) { static unsigned int next = 0; static unsigned char dat[] = {0x63, 0, 2, 0};