summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:38:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:38:11 +0000
commit2b3f9168554bb673c8ddd5e40dc88253f5e8d999 (patch)
treeb77660a67128df815b9b262f201b3e99f5239d4c /man_validate.c
parent3e5450d43d3c10157f2bc26fb800be01f4d42261 (diff)
downloadmandoc-2b3f9168554bb673c8ddd5e40dc88253f5e8d999.tar.gz
Initial front-end formatting for -man pages.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/man_validate.c b/man_validate.c
index 495e4329..fb7dd295 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -54,7 +54,7 @@ static const struct man_valid man_valids[MAN_MAX] = {
{ posts_ge2_le5 }, /* TH */
{ posts_ge1 }, /* SH */
{ posts_ge1 }, /* SS */
- { posts_le1 }, /* TP */
+ { NULL }, /* TP */
{ posts_eq0 }, /* LP */
{ posts_eq0 }, /* PP */
{ posts_eq0 }, /* P */
@@ -70,6 +70,7 @@ static const struct man_valid man_valids[MAN_MAX] = {
{ NULL }, /* B */
{ NULL }, /* I */
{ NULL }, /* IR */
+ { NULL }, /* RI */
};
@@ -119,7 +120,7 @@ check_##name(POSTARGS) \
int c; \
if ((c = count(n->child)) ineq (x)) \
return(1); \
- return(man_vwarn(m, n->line, n->pos, \
+ return(man_verr(m, n->line, n->pos, \
"expected line arguments %s %d, have %d", \
#ineq, (x), c)); \
}