]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r237348:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jun 2012 00:37:32 +0000 (00:37 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jun 2012 00:37:32 +0000 (00:37 +0000)
commit106e6606d17f51b30f34fc773fe34781003cf6d2
tree72c24724c61c197ffa6811ca9d19d4b401982b5b
parente6ac5ca21b1c15ba4c167c5fe04a87042c078880
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/9@237464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/makewhatis/makewhatis.c