Fix test/infcover.c function prototype when ZLIB_CONST defined.

pull/945/merge
Mark Adler 8 months ago
parent 3adaa095a7
commit ceadaf28df
  1. 4
      test/infcover.c

@ -1,5 +1,5 @@
/* infcover.c -- test zlib's inflate routines with full code coverage /* 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 * 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() */ /* 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 int next = 0;
static unsigned char dat[] = {0x63, 0, 2, 0}; static unsigned char dat[] = {0x63, 0, 2, 0};

Loading…
Cancel
Save