summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-07-05 12:33:54 +0000
committerschwarze <schwarze@openbsd.org>2014-07-05 12:33:54 +0000
commitdc0d8bb2a0f14e8f84dac38e507325167c7e30ff (patch)
tree8793a71958caf9ce7780f08a63bd66ee160affd5 /usr.bin/mandoc/man_validate.c
parentNo need to redefine DT_PROCNUM and DT_BIND_NOW here, these are provided by MI (diff)
downloadwireguard-openbsd-dc0d8bb2a0f14e8f84dac38e507325167c7e30ff.tar.xz
wireguard-openbsd-dc0d8bb2a0f14e8f84dac38e507325167c7e30ff.zip
Cleanup with respect to bad macro arguments.
* Fix .Sm with invalid arg: move arg out and toggle mode. * Promote "unknown standard" from WARNING to ERROR, it loses information. * Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug. * Do not report MANDOCERR_BL_LATETYPE when there is no type at all. * Mention macro names, arguments and fallbacks.
Diffstat (limited to 'usr.bin/mandoc/man_validate.c')
-rw-r--r--usr.bin/mandoc/man_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c
index e42f9acb79e..4c2867c3354 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.69 2014/07/04 16:11:41 schwarze Exp $ */
+/* $Id: man_validate.c,v 1.70 2014/07/05 12:33:54 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -299,8 +299,8 @@ post_ft(CHKARGS)
}
if (0 == ok) {
- mandoc_vmsg(MANDOCERR_BADFONT, man->parse, n->line,
- n->pos, "%s", cp);
+ mandoc_vmsg(MANDOCERR_FT_BAD, man->parse,
+ n->line, n->pos, "ft %s", cp);
*cp = '\0';
}