summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-02 11:43:20 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-02 11:43:20 +0000
commit5974c463fa58c6b119a1cacf57644ad24c66106e (patch)
tree19c2713c0bc8aa1178b68c959993973007c0fa3f /man_validate.c
parent4251a52721ec8ec2c8efc2409d7a08a751793bc5 (diff)
downloadmandoc-5974c463fa58c6b119a1cacf57644ad24c66106e.tar.gz
Clean up warnings related to macros and nesting.
* Hierarchical naming of enum mandocerr items. * Improve the wording to make it comprehensible. * Mention the offending macro. * Garbage collect one chunk of ancient, long unreachable code.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_validate.c b/man_validate.c
index def1e47d..72d8d023 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -479,7 +479,7 @@ post_nf(CHKARGS)
{
if (MAN_LITERAL & man->flags)
- man_nmsg(man, n, MANDOCERR_SCOPEREP);
+ man_nmsg(man, n, MANDOCERR_NF_SKIP);
man->flags |= MAN_LITERAL;
return(1);
@@ -490,7 +490,7 @@ post_fi(CHKARGS)
{
if ( ! (MAN_LITERAL & man->flags))
- man_nmsg(man, n, MANDOCERR_WNOSCOPE);
+ man_nmsg(man, n, MANDOCERR_FI_SKIP);
man->flags &= ~MAN_LITERAL;
return(1);