summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-05 13:12:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-05 13:12:12 +0000
commitc1fd7f502ac50e13a6185e829bdbd03b7d0a931c (patch)
treefd39f0c38c00a28528f560159ac5f5d2f9542128 /mdoc.c
parent6936c4e5a0bd4bddcfd7c9d08d801aba0415dbad (diff)
downloadmandoc-c1fd7f502ac50e13a6185e829bdbd03b7d0a931c.tar.gz
Cleaned up ctype functions (netbsd).
Fixed .Ex/.Rv -std usage. Made Ar provide default value.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 7110cdee..a1b7b74e 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -220,7 +220,8 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
return(1);
i = 1;
- while (buf[i] && ! isspace((int)buf[i]) && i < (int)sizeof(tmp))
+ while (buf[i] && ! isspace((u_char)buf[i]) &&
+ i < (int)sizeof(tmp))
i++;
if (i == (int)sizeof(tmp)) {
@@ -241,7 +242,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
return(mdoc_perr(mdoc, line, 1, "unknown macro"));
}
- while (buf[i] && isspace((int)buf[i]))
+ while (buf[i] && isspace((u_char)buf[i]))
i++;
if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) {