summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 07:30:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 07:30:19 +0000
commitc10df4f63596660b1a585dd712a0778b88ec5874 (patch)
treef77bfbb9e507408371b66a87df9e677a040288a1 /mdoc_validate.c
parent0f679b197ab273ae0779713155a8a455d4a770fe (diff)
downloadmandoc-c10df4f63596660b1a585dd712a0778b88ec5874.tar.gz
Lint fixes (type-safety for enums via -cefuh).
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index c2ef5d50..22db47a8 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -747,7 +747,7 @@ pre_sh(PRE_ARGS)
if (MDOC_BLOCK != n->type)
return(1);
- return(check_parent(mdoc, n, -1, MDOC_ROOT));
+ return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT));
}