diff --git a/libexec/makewhatis/makewhatis.c b/libexec/makewhatis/makewhatis.c index 9209d4084..a32dc0924 100644 --- a/libexec/makewhatis/makewhatis.c +++ b/libexec/makewhatis/makewhatis.c @@ -1,4 +1,4 @@ -/* $NetBSD: makewhatis.c,v 1.49 2013/06/24 20:57:47 christos Exp $ */ +/* $NetBSD: makewhatis.c,v 1.51 2017/10/02 22:14:32 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ #if !defined(lint) __COPYRIGHT("@(#) Copyright (c) 1999\ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: makewhatis.c,v 1.49 2013/06/24 20:57:47 christos Exp $"); +__RCSID("$NetBSD: makewhatis.c,v 1.51 2017/10/02 22:14:32 christos Exp $"); #endif /* not lint */ #include @@ -58,6 +58,7 @@ __RCSID("$NetBSD: makewhatis.c,v 1.49 2013/06/24 20:57:47 christos Exp $"); #include #include #include +#include #include #include #include @@ -97,19 +98,16 @@ static void addwhatis(whatis **, char *, char *); static char *makesection(int); static char *makewhatisline(const char *, const char *, const char *); static void catpreprocess(char *); -static char *parsecatpage(const char *, gzFile *); +static char *parsecatpage(const char *, gzFile); static int manpreprocess(char *); -static char *nroff(const char *, gzFile *); -static char *parsemanpage(const char *, gzFile *, int); +static char *nroff(const char *, gzFile); +static char *parsemanpage(const char *, gzFile, int); static char *getwhatisdata(char *); static void processmanpages(manpage **, whatis **); static void dumpwhatis(FILE *, whatis *); static int makewhatis(char * const *manpath); static char * const default_manpath[] = { -#if defined(__minix) - "/usr/man", -#endif /* defined(__minix) */ "/usr/share/man", NULL }; @@ -627,7 +625,7 @@ makewhatisline(const char *file, const char *line, const char *section) } static char * -parsecatpage(const char *name, gzFile *in) +parsecatpage(const char *name, gzFile in) { char buffer[8192]; char *section, *ptr, *last; @@ -772,7 +770,7 @@ manpreprocess(char *line) } static char * -nroff(const char *inname, gzFile *in) +nroff(const char *inname, gzFile in) { char tempname[MAXPATHLEN], buffer[65536], *data; int tempfd, bytes, pipefd[2], status; @@ -871,7 +869,7 @@ nroff(const char *inname, gzFile *in) } static char * -parsemanpage(const char *name, gzFile *in, int defaultsection) +parsemanpage(const char *name, gzFile in, int defaultsection) { char *section, buffer[8192], *ptr; static const char POD[] = ".\\\" Automatically generated by Pod"; @@ -1100,7 +1098,7 @@ parsemanpage(const char *name, gzFile *in, int defaultsection) static char * getwhatisdata(char *name) { - gzFile *in; + gzFile in; char *data; int section;