summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-07-01 22:36:35 +0000
committerschwarze <schwarze@openbsd.org>2014-07-01 22:36:35 +0000
commit51fcab2f53b5919952da3c1294866bf335b31ca8 (patch)
tree19c86905513a86e759501605b404558010de2130 /usr.bin/mandoc/man_validate.c
parentAvoid a NULL deref in i2d_ECPrivateKey() when an EC_KEY lacks the public key (diff)
downloadwireguard-openbsd-51fcab2f53b5919952da3c1294866bf335b31ca8.tar.xz
wireguard-openbsd-51fcab2f53b5919952da3c1294866bf335b31ca8.zip
Clean up the warnings related to document structure.
* Hierarchical naming of the related enum mandocerr items. * Mention the offending macro, section title, or string. While here, improve some wordings: * Descriptive instead of imperative style. * Uniform style for "missing" and "skipping". * Where applicable, mention the fallback used.
Diffstat (limited to 'usr.bin/mandoc/man_validate.c')
-rw-r--r--usr.bin/mandoc/man_validate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c
index 81f67e1ecdd..fc59f8696d1 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.65 2014/06/20 22:58:41 schwarze Exp $ */
+/* $Id: man_validate.c,v 1.66 2014/07/01 22:36:35 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -410,7 +410,10 @@ post_TH(CHKARGS)
/* Only warn about this once... */
if (isalpha((unsigned char)*p) &&
! isupper((unsigned char)*p)) {
- man_nmsg(man, n, MANDOCERR_TITLE_CASE);
+ mandoc_msg(MANDOCERR_TITLE_CASE,
+ man->parse, n->line,
+ n->pos + (p - n->string),
+ n->string);
break;
}
}