diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-30 23:28:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-30 23:28:06 +0000 |
commit | 31a32116928bbca3f6efbb87356cad825ecc8210 (patch) | |
tree | 1ad85c6be926fcb49a7677c4c36f2bd7f04dbdcb | |
parent | 0e54067b69058241ae1471784ca76be3ce54c96e (diff) | |
download | mandoc-31a32116928bbca3f6efbb87356cad825ecc8210.tar.gz |
Allow ERRORS in section 4; OpenBSD rev. 1.121.
-rw-r--r-- | mdoc_validate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 86e5a267..e659f4d4 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -2029,9 +2029,11 @@ post_sh_head(POST_ARGS) assert(mdoc->meta.msec); switch (sec) { - case (SEC_RETURN_VALUES): - /* FALLTHROUGH */ case (SEC_ERRORS): + if (*mdoc->meta.msec == '4') + break; + /* FALLTHROUGH */ + case (SEC_RETURN_VALUES): /* FALLTHROUGH */ case (SEC_LIBRARY): if (*mdoc->meta.msec == '2') |