summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:40:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:40:34 +0000
commit604bf7765cfa3f1a7d5702f8b54d326e7aaab3a4 (patch)
treeb93f498be04b56f2897a6053343084616ee50861 /man_validate.c
parent85ebc4c346a67252f8e7e3a1c4326920984c01e7 (diff)
downloadmandoc-604bf7765cfa3f1a7d5702f8b54d326e7aaab3a4.tar.gz
demacrify: get rid of man_nmsg(), man_pmsg(), mdoc_nmsg(), mdoc_pmsg()
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_validate.c b/man_validate.c
index 535f4006..e99ee590 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -191,12 +191,14 @@ check_root(CHKARGS)
assert((man->flags & (MAN_BLINE | MAN_ELINE)) == 0);
if (NULL == man->first->child)
- man_nmsg(man, n, MANDOCERR_DOC_EMPTY);
+ mandoc_msg(MANDOCERR_DOC_EMPTY, man->parse,
+ n->line, n->pos, NULL);
else
man->meta.hasbody = 1;
if (NULL == man->meta.title) {
- man_nmsg(man, n, MANDOCERR_TH_MISSING);
+ mandoc_msg(MANDOCERR_TH_MISSING, man->parse,
+ n->line, n->pos, NULL);
/*
* If a title hasn't been set, do so now (by