summaryrefslogtreecommitdiffstats
path: root/usr.bin/makewhatis
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-06-20 23:53:36 +0000
committerdelphij <delphij@FreeBSD.org>2012-06-20 23:53:36 +0000
commit1cd76f76b0b8475afdce355e621acaf9dec5b099 (patch)
treec033181f7e8c7fdb49dca139d6c8d16005151f70 /usr.bin/makewhatis
parent4d96d753feedcc57803c82b8b8fc08698181c284 (diff)
downloadFreeBSD-src-1cd76f76b0b8475afdce355e621acaf9dec5b099.zip
FreeBSD-src-1cd76f76b0b8475afdce355e621acaf9dec5b099.tar.gz
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
Diffstat (limited to 'usr.bin/makewhatis')
-rw-r--r--usr.bin/makewhatis/makewhatis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c
index f2ae370..45abc8f 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;
OpenPOWER on IntegriCloud