summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man_validate.c11
-rw-r--r--mdoc_validate.c4
2 files changed, 6 insertions, 9 deletions
diff --git a/man_validate.c b/man_validate.c
index c1968989..6a72c0bd 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -325,14 +325,11 @@ static int
check_sec(CHKARGS)
{
- if (MAN_HEAD == n->type && 0 == n->nchild) {
- man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);
- return(0);
- } else if (MAN_BODY == n->type && 0 == n->nchild)
- mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line,
- n->pos, "want children (have none)");
+ if ( ! (MAN_HEAD == n->type && 0 == n->nchild))
+ return(1);
- return(1);
+ man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);
+ return(0);
}
diff --git a/mdoc_validate.c b/mdoc_validate.c
index acd855eb..d3b19a7b 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -155,9 +155,9 @@ static v_post posts_notext[] = { ewarn_eq0, NULL };
static v_post posts_ns[] = { post_ns, NULL };
static v_post posts_os[] = { post_os, post_prol, NULL };
static v_post posts_rs[] = { post_rs, NULL };
-static v_post posts_sh[] = { post_ignpar, hwarn_ge1, bwarn_ge1, post_sh, NULL };
+static v_post posts_sh[] = { post_ignpar, hwarn_ge1, post_sh, NULL };
static v_post posts_sp[] = { ewarn_le1, NULL };
-static v_post posts_ss[] = { post_ignpar, hwarn_ge1, bwarn_ge1, NULL };
+static v_post posts_ss[] = { post_ignpar, hwarn_ge1, NULL };
static v_post posts_st[] = { post_st, NULL };
static v_post posts_std[] = { post_std, NULL };
static v_post posts_text[] = { ewarn_ge1, NULL };