From 72e03f757660ed295f81315d871e51abe22df9dd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 21 Apr 2010 05:07:53 +0200 Subject: [PATCH] Add a cast that fixes a warning in the new zlib code. --- src/prop_array.c | 2 +- src/prop_dictionary.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prop_array.c b/src/prop_array.c index 15437fb..9a66acd 100644 --- a/src/prop_array.c +++ b/src/prop_array.c @@ -993,7 +993,7 @@ prop_array_internalize_from_zfile(const char *fname) } strm.avail_in = mf->poimf_mapsize; - strm.next_in = mf->poimf_xml; + strm.next_in = (unsigned char *)mf->poimf_xml; /* Output buffer (decompressed) */ uncomp_xml = _PROP_MALLOC(_READ_CHUNK, M_TEMP); diff --git a/src/prop_dictionary.c b/src/prop_dictionary.c index 9a33c3e..4dddbc3 100644 --- a/src/prop_dictionary.c +++ b/src/prop_dictionary.c @@ -1491,7 +1491,7 @@ prop_dictionary_internalize_from_zfile(const char *fname) return NULL; } strm.avail_in = mf->poimf_mapsize; - strm.next_in = mf->poimf_xml; + strm.next_in = (unsigned char *)mf->poimf_xml; /* Output buffer (uncompressed) */ uncomp_xml = _PROP_MALLOC(_READ_CHUNK, M_TEMP); -- 2.11.4.GIT