From: Todd C. Miller Date: Wed, 22 Mar 2017 14:47:10 +0000 (-0600) Subject: quiet a warning on older zlib X-Git-Tag: SUDO_1_8_20^2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4621e43676315667664bf3768ce0dfe3fdc2f9b1;p=sudo quiet a warning on older zlib --- diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index d3a11ae25..743ec6ed9 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -809,7 +809,7 @@ iolog_write(const void *buf, unsigned int len, int idx) #ifdef HAVE_ZLIB_H if (iolog_compress) { - if (gzwrite(io_log_files[idx].fd.g, buf, len) != (int)len) { + if (gzwrite(io_log_files[idx].fd.g, (const voidp)buf, len) != (int)len) { errstr = gzstrerror(io_log_files[idx].fd.g); goto done; }