]> CyberLeo.Net >> Repos - FreeBSD/stable/8.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)
commitc5fd0b31bcb59661a302e660d32fe7804fbfd06c
treef6352ff841e8fd7a126750f8493004857eaba4fc
parent6ddfc4be821a3643011dcd3505275fa1706259a7
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