diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-26 09:55:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-26 09:55:39 +0000 |
commit | 48c75ac0d363231aad256b8377a73bc1f8d158d5 (patch) | |
tree | 92966078d91ba12155f189f933548b38f9d08349 /man_validate.c | |
parent | ef64725c09db0346dd0d5a32ae063e383d216b33 (diff) | |
download | mandoc-48c75ac0d363231aad256b8377a73bc1f8d158d5.tar.gz mandoc-48c75ac0d363231aad256b8377a73bc1f8d158d5.tar.zst mandoc-48c75ac0d363231aad256b8377a73bc1f8d158d5.zip |
Fixed reading whitespace for man.7 `. TH'.
Documented this.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man_validate.c b/man_validate.c index 2f2f9c8d..71e30b80 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.2 2009/03/25 21:46:24 kristaps Exp $ */ +/* $Id: man_validate.c,v 1.3 2009/03/26 09:55:39 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org> * @@ -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", \ |