From c5fd0b31bcb59661a302e660d32fe7804fbfd06c Mon Sep 17 00:00:00 2001 From: delphij Date: Sat, 23 Jun 2012 00:37:32 +0000 Subject: [PATCH] MFC r237348: Currently the code uses gzFile * for a zlib file descriptor, which is not correct. The code works by accident because gzFile is currently defined as void *, and internally it would be casted from or to its real type. A newer version of zlib will instead define it as a pointer to a specific type pointer (namely, struct gzFile_s *). This therefore would cause stricter checks and compiler would catch this type mismatch. This change does not cause any changes to the resulting binary, as validated with md5(1). git-svn-id: svn://svn.freebsd.org/base/stable/8@237464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/makewhatis/makewhatis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c index f2ae3709d..45abc8f1a 100644 --- a/usr.bin/makewhatis/makewhatis.c +++ b/usr.bin/makewhatis/makewhatis.c @@ -693,7 +693,7 @@ enum { STATE_UNKNOWN, STATE_MANSTYLE, STATE_MDOCNAME, STATE_MDOCDESC }; static void process_page(struct page_info *page, char *section_dir) { - gzFile *in; + gzFile in; char buffer[4096]; char *line; StringList *names; -- 2.45.0