summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 09:55:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 09:55:39 +0000
commit35f2108111d8f83fc25edd4c460e0f37db93901b (patch)
treea2a14f413a5220dcb10ce51e46fdeaa6d9b319e3 /man_validate.c
parentd31b9aced380c9834f45869247dfbd42922d533b (diff)
downloadmandoc-35f2108111d8f83fc25edd4c460e0f37db93901b.tar.gz
Fixed reading whitespace for man.7 `. TH'.
Documented this.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c
index e67444f7..495e4329 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -35,7 +35,7 @@ struct man_valid {
v_post *posts;
};
-static int count(POSTARGS);
+static int count(const struct man_node *);
static int check_eq0(POSTARGS);
static int check_ge1(POSTARGS);
static int check_ge2(POSTARGS);
@@ -102,7 +102,7 @@ man_valid_post(struct man *m)
static inline int
-count(POSTARGS)
+count(const struct man_node *n)
{
int i;
@@ -117,7 +117,7 @@ static int \
check_##name(POSTARGS) \
{ \
int c; \
- if ((c = count(m, n->child)) ineq (x)) \
+ if ((c = count(n->child)) ineq (x)) \
return(1); \
return(man_vwarn(m, n->line, n->pos, \
"expected line arguments %s %d, have %d", \