summaryrefslogtreecommitdiffstats
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
parent50f9604d3b055e8ec8c5617c792e62d6e01219a3 (diff)
downloadmandoc-89953ac5c4d3fbb0306d1e3fd313a22d9202f737.tar.gz
Lint- and NetBSD-compiler checks.
-rw-r--r--argv.c16
-rw-r--r--mdoc.c4
-rw-r--r--strings.c2
3 files changed, 11 insertions, 11 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. */
diff --git a/mdoc.c b/mdoc.c
index eab289de..233ac6be 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -318,7 +318,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
return(1);
i = 1;
- while (buf[i] && ! isspace(buf[i]) && i < (int)sizeof(tmp))
+ while (buf[i] && ! isspace((int)buf[i]) && i < (int)sizeof(tmp))
i++;
if (i == (int)sizeof(tmp)) {
@@ -339,7 +339,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
return(mdoc_perr(mdoc, line, 1, "unknown macro"));
}
- while (buf[i] && isspace(buf[i]))
+ while (buf[i] && isspace((int)buf[i]))
i++;
if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) {
diff --git a/strings.c b/strings.c
index 1d56ab68..631243e6 100644
--- a/strings.c
+++ b/strings.c
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#ifdef __linux__
+#ifndef __OpenBSD__
#include <time.h>
#endif