diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-20 13:49:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-20 13:49:36 +0000 |
commit | 89953ac5c4d3fbb0306d1e3fd313a22d9202f737 (patch) | |
tree | 74b81ee6b97b945df4c0158ba5eda7a7e4a62412 | |
parent | 50f9604d3b055e8ec8c5617c792e62d6e01219a3 (diff) | |
download | mandoc-89953ac5c4d3fbb0306d1e3fd313a22d9202f737.tar.gz |
Lint- and NetBSD-compiler checks.
-rw-r--r-- | argv.c | 16 | ||||
-rw-r--r-- | mdoc.c | 4 | ||||
-rw-r--r-- | strings.c | 2 |
3 files changed, 11 insertions, 11 deletions
@@ -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. */ @@ -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)) { @@ -21,7 +21,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#ifdef __linux__ +#ifndef __OpenBSD__ #include <time.h> #endif |