summaryrefslogtreecommitdiffstats
path: root/mdocterm.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 /mdocterm.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 'mdocterm.c')
-rw-r--r--mdocterm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 37f0bd39..660d0661 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -287,7 +287,7 @@ flushln(struct termp *p)
/* LINTED */
for (j = i, vsz = 0; j < p->col; j++) {
- if (isspace((int)p->buf[j]))
+ if (isspace((u_char)p->buf[j]))
break;
else if (27 == p->buf[j]) {
assert(j + 4 <= p->col);
@@ -334,7 +334,7 @@ flushln(struct termp *p)
*/
for ( ; i < p->col; i++) {
- if (isspace((int)p->buf[i]))
+ if (isspace((u_char)p->buf[i]))
break;
putchar(p->buf[i]);
}
@@ -437,13 +437,13 @@ word(struct termp *p, const char *word)
/* LINTED */
for (j = i = 0; i < len; i++) {
- if ( ! isspace((int)word[i])) {
+ if ( ! isspace((u_char)word[i])) {
j++;
continue;
}
/* Escaped spaces don't delimit... */
- if (i > 0 && isspace((int)word[i]) &&
+ if (i > 0 && isspace((u_char)word[i]) &&
'\\' == word[i - 1]) {
j++;
continue;
@@ -649,7 +649,7 @@ header(struct termp *p, const struct mdoc_meta *meta)
meta->title, pp ? pp : "");
for (bufp = title; *bufp; bufp++)
- *bufp = toupper(*bufp);
+ *bufp = toupper((u_char)*bufp);
p->offset = 0;
p->rmargin = (p->maxrmargin - strlen(buf)) / 2;