From 4ca2f5b5094f2e2968f77b9883f1574179a65678 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 12 Jul 2009 09:13:21 +0000 Subject: Fixed mdoc_nwarn/mdoc_nerr considering themselves err/warn instead of warn/err (BIG mistake). From suggestion by . --- mdoc_validate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mdoc_validate.c') 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 * @@ -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 -- cgit v1.2.3