summaryrefslogtreecommitdiffstats
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:49:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:49:36 +0000
commit89953ac5c4d3fbb0306d1e3fd313a22d9202f737 (patch)
tree74b81ee6b97b945df4c0158ba5eda7a7e4a62412 /argv.c
parent50f9604d3b055e8ec8c5617c792e62d6e01219a3 (diff)
downloadmandoc-89953ac5c4d3fbb0306d1e3fd313a22d9202f737.tar.gz
Lint- and NetBSD-compiler checks.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/argv.c b/argv.c
index b9fbb11d..6c62f3dd 100644
--- a/argv.c
+++ b/argv.c
@@ -70,10 +70,10 @@ mdoc_args(struct mdoc *mdoc, int line, int *pos, char *buf, int fl, char **v)
if ( ! mdoc_iscdelim(buf[i]))
break;
i++;
- if (0 == buf[i] || ! isspace(buf[i]))
+ if (0 == buf[i] || ! isspace((int)buf[i]))
break;
i++;
- while (buf[i] && isspace(buf[i]))
+ while (buf[i] && isspace((int)buf[i]))
i++;
}
if (0 == buf[i]) {
@@ -107,7 +107,7 @@ mdoc_args(struct mdoc *mdoc, int line, int *pos, char *buf, int fl, char **v)
}
else {
while (buf[*pos]) {
- if (isspace(buf[*pos]))
+ if (isspace((int)buf[*pos]))
if ('\\' != buf[*pos - 1])
break;
(*pos)++;
@@ -123,7 +123,7 @@ mdoc_args(struct mdoc *mdoc, int line, int *pos, char *buf, int fl, char **v)
return(ARGS_WORD);
if ( ! (ARGS_TABSEP & fl))
- while (buf[*pos] && isspace(buf[*pos]))
+ while (buf[*pos] && isspace((int)buf[*pos]))
(*pos)++;
if (buf[*pos])
@@ -155,7 +155,7 @@ mdoc_args(struct mdoc *mdoc, int line, int *pos, char *buf, int fl, char **v)
if (0 == buf[*pos])
return(ARGS_QWORD);
- while (buf[*pos] && isspace(buf[*pos]))
+ while (buf[*pos] && isspace((int)buf[*pos]))
(*pos)++;
if (buf[*pos])
@@ -452,7 +452,7 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
if (0 == buf[*pos])
return(ARGV_EOLN);
- assert( ! isspace(buf[*pos]));
+ assert( ! isspace((int)buf[*pos]));
if ('-' != buf[*pos])
return(ARGV_WORD);
@@ -465,7 +465,7 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
assert(*pos > 0);
while (buf[*pos]) {
- if (isspace(buf[*pos]))
+ if (isspace((int)buf[*pos]))
if ('\\' != buf[*pos - 1])
break;
(*pos)++;
@@ -480,7 +480,7 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
return(ARGV_WORD);
}
- while (buf[*pos] && isspace(buf[*pos]))
+ while (buf[*pos] && isspace((int)buf[*pos]))
(*pos)++;
/* FIXME: whitespace if no value. */