]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Currently the code uses gzFile * for a zlib file descriptor, which
authordelphij <delphij@FreeBSD.org>
Wed, 20 Jun 2012 23:53:36 +0000 (23:53 +0000)
committerdelphij <delphij@FreeBSD.org>
Wed, 20 Jun 2012 23:53:36 +0000 (23:53 +0000)
commit1cd76f76b0b8475afdce355e621acaf9dec5b099
treec033181f7e8c7fdb49dca139d6c8d16005151f70
parent4d96d753feedcc57803c82b8b8fc08698181c284
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).

MFC after: 3 days
usr.bin/makewhatis/makewhatis.c