Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb In the latest mandoc (mdocml) the signatu...



details:   https://anonhg.NetBSD.org/src/rev/f4b4167ca584
branches:  trunk
changeset: 363925:f4b4167ca584
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Aug 16 05:07:22 2018 +0000

description:
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).

diffstat:

 usr.sbin/makemandb/makemandb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e52e2dfa2f05 -r f4b4167ca584 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Thu Aug 16 05:03:17 2018 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Thu Aug 16 05:07:22 2018 +0000
@@ -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@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -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 @@
 
        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;



Home | Main Index | Thread Index | Old Index