diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-12 09:13:21 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-12 09:13:21 +0000 |
commit | 4ca2f5b5094f2e2968f77b9883f1574179a65678 (patch) | |
tree | 72dac29028514346a373415dfe0bc305036f2e4c /mdoc_validate.c | |
parent | f4126de626c0004e633d89ab7d6750d70ddd85a9 (diff) | |
download | mandoc-4ca2f5b5094f2e2968f77b9883f1574179a65678.tar.gz mandoc-4ca2f5b5094f2e2968f77b9883f1574179a65678.tar.zst mandoc-4ca2f5b5094f2e2968f77b9883f1574179a65678.zip |
Fixed mdoc_nwarn/mdoc_nerr considering themselves err/warn instead of warn/err (BIG mistake). From suggestion by <joerg@netbsd.org>.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 195fe462..d239a504 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.25 2009/07/07 11:47:17 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.26 2009/07/12 09:13:21 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1217,9 +1217,11 @@ post_sh_head(POST_ARGS) if (SEC_CUSTOM == sec) return(1); if (sec == mdoc->lastnamed) - return(mdoc_nwarn(mdoc, mdoc->last, ESECREP)); + if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECREP)) + return(0); if (sec < mdoc->lastnamed) - return(mdoc_nwarn(mdoc, mdoc->last, ESECOOO)); + if ( ! mdoc_nwarn(mdoc, mdoc->last, ESECOOO)) + return(0); /* * Check particular section/manual conventions. LIBRARY can |