summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc.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/mdoc.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/mdoc.c')
-rw-r--r--usr.bin/mandoc/mdoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c
index c59fb662f2f..9efbee769d2 100644
--- a/usr.bin/mandoc/mdoc.c
+++ b/usr.bin/mandoc/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.105 2014/06/20 17:23:09 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.106 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>
@@ -31,7 +31,7 @@
#include "libmdoc.h"
#include "libmandoc.h"
-const char *const __mdoc_macronames[MDOC_MAX] = {
+const char *const __mdoc_macronames[MDOC_MAX + 1] = {
"Ap", "Dd", "Dt", "Os",
"Sh", "Ss", "Pp", "D1",
"Dl", "Bd", "Ed", "Bl",
@@ -62,7 +62,7 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Lk", "Mt", "Brq", "Bro",
"Brc", "%C", "Es", "En",
"Dx", "%Q", "br", "sp",
- "%U", "Ta", "ll",
+ "%U", "Ta", "ll", "text",
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {