diff options
author | 2000-06-13 19:16:15 +0000 | |
---|---|---|
committer | 2000-06-13 19:16:15 +0000 | |
commit | adf9c6c4c6271a1ab254ecbc9564ac39cdf022e3 (patch) | |
tree | dc9b77b1a8918600714811821b7369303cba46d2 /lib/libkeynote/parse_assertion.c | |
parent | Cast to avoid warning. (diff) | |
download | wireguard-openbsd-adf9c6c4c6271a1ab254ecbc9564ac39cdf022e3.tar.xz wireguard-openbsd-adf9c6c4c6271a1ab254ecbc9564ac39cdf022e3.zip |
Fix some compile warnings.
Diffstat (limited to 'lib/libkeynote/parse_assertion.c')
-rw-r--r-- | lib/libkeynote/parse_assertion.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libkeynote/parse_assertion.c b/lib/libkeynote/parse_assertion.c index ea6f7199bc6..a3979f0f00b 100644 --- a/lib/libkeynote/parse_assertion.c +++ b/lib/libkeynote/parse_assertion.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_assertion.c,v 1.8 2000/02/12 14:28:00 angelos Exp $ */ +/* $OpenBSD: parse_assertion.c,v 1.9 2000/06/13 19:16:16 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -401,7 +401,7 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) ASSERT_FLAG_SIGVER); /* Skip any leading whitespace */ - for (i = 0, j = len; i < j && isspace(as->as_buf[i]); i++) + for (i = 0, j = len; i < j && isspace((int) as->as_buf[i]); i++) ; /* Keyword must start at begining of buffer or line */ @@ -476,7 +476,8 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) /* If newline followed by non-whitespace or comment character */ if ((as->as_buf[i] == '\n') && - (!isspace(as->as_buf[i + 1])) && (as->as_buf[i + 1] != '#')) + (!isspace((int) as->as_buf[i + 1])) && + (as->as_buf[i + 1] != '#')) { te = as->as_buf + i; break; @@ -606,7 +607,7 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) /* Check whether there's something else following */ for (k = 1; te + k < as->as_buf + len && *(te + k) != '\n'; k++) - if (!isspace(*(te + k))) + if (!isspace((int) *(te + k))) { printf("here %c\n", *(te + k)); keynote_free_assertion(as); |