diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-08 15:57:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-08 15:57:06 +0000 |
commit | d0ef4708885d43f74818fe75859d3c7f0f3759f9 (patch) | |
tree | 234b41d8167362fb7534a9ec14fae36a148a941c /usr.bin/mandoc/man_validate.c | |
parent | bdd0ab2f6a7e0e4cd01faf30e043e9bb941a0f79 (diff) |
demacrify: get rid of man_nmsg(), man_pmsg(), mdoc_nmsg(), mdoc_pmsg()
Diffstat (limited to 'usr.bin/mandoc/man_validate.c')
-rw-r--r-- | usr.bin/mandoc/man_validate.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index e4a418e9677..9e6389c02b6 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.74 2014/08/08 15:54:10 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.75 2014/08/08 15:57:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -187,12 +187,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 |