summaryrefslogtreecommitdiffstats
path: root/strings.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 /strings.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 'strings.c')
-rw-r--r--strings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/strings.c b/strings.c
index eb6a8917..55cfe46b 100644
--- a/strings.c
+++ b/strings.c
@@ -62,16 +62,16 @@ mdoc_isescape(const char *p)
case ('e'):
return(2);
case ('*'):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
switch (*p) {
case ('('):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
return(4);
case ('['):
for (c = 3, p++; *p && ']' != *p; p++, c++)
- if ( ! isgraph((int)*p))
+ if ( ! isgraph((u_char)*p))
break;
return(*p == ']' ? c : 0);
default:
@@ -79,9 +79,9 @@ mdoc_isescape(const char *p)
}
return(3);
case ('('):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
return(4);
case ('['):
@@ -91,7 +91,7 @@ mdoc_isescape(const char *p)
}
for (c = 3, p++; *p && ']' != *p; p++, c++)
- if ( ! isgraph((int)*p))
+ if ( ! isgraph((u_char)*p))
break;
return(*p == ']' ? c : 0);