Module Name:    src
Committed By:   kre
Date:           Thu Aug 16 05:07:22 UTC 2018

Modified Files:
        src/usr.sbin/makemandb: makemandb.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/makemandb/makemandb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makemandb/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.55 src/usr.sbin/makemandb/makemandb.c:1.56
--- src/usr.sbin/makemandb/makemandb.c:1.55	Wed May 10 12:09:52 2017
+++ src/usr.sbin/makemandb/makemandb.c	Thu Aug 16 05:07:22 2018
@@ -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.upadh...@gmail.com>
  * Copyright (c) 2011 Kristaps Dzonsons <krist...@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;

Reply via email to