From 4621e43676315667664bf3768ce0dfe3fdc2f9b1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 22 Mar 2017 08:47:10 -0600 Subject: [PATCH] quiet a warning on older zlib --- plugins/sudoers/iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0