In the latest mandoc (mdocml) the signature (prototype) of
mparse_alloc() altered - update the call here to compensate. This fixes the build (of makemandb), but I am not sure that the changed version is what is desired - someone who knows something about all of this should validate ... I just copied the invocation from mandoc's demandoc.c (which seems likely to be at least a similar kind of usage).
This commit is contained in:
parent
a0734df14c
commit
6a7c82e6b2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: makemandb.c,v 1.55 2017/05/10 12:09:52 abhinav Exp $ */
|
||||
/* $NetBSD: makemandb.c,v 1.56 2018/08/16 05:07:22 kre Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
|
||||
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
|
||||
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: makemandb.c,v 1.55 2017/05/10 12:09:52 abhinav Exp $");
|
||||
__RCSID("$NetBSD: makemandb.c,v 1.56 2018/08/16 05:07:22 kre Exp $");
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -372,7 +372,7 @@ main(int argc, char *argv[])
|
|||
|
||||
init_secbuffs(&rec);
|
||||
mchars_alloc();
|
||||
mp = mparse_alloc(0, MANDOCLEVEL_BADARG, NULL, NULL);
|
||||
mp = mparse_alloc(0, MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, NULL);
|
||||
|
||||
if (manconf) {
|
||||
char *arg;
|
||||
|
|
Loading…
Reference in New Issue