Skip to content

Commit

Permalink
Fix NetBSD ctype warnings: "array subscript has type 'char'"
Browse files Browse the repository at this point in the history
As noted previously in commit e8f6d53, we have to cast to int via unsigned
char on NetBSD to ensure that the values fall into the correct range.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jul 1, 2014
1 parent 6c8d887 commit 2525c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions digest.c
Expand Up @@ -162,14 +162,14 @@ int digest_authorization(struct openconnect_info *vpninfo, struct oc_text_buf *h
chall = p;
}
}
while (isspace(*chall))
while (isspace((int)(unsigned char)*chall))
chall++;
if (!*chall)
break;
if (*chall != ',')
goto err;
chall++;
while (isspace(*chall))
while (isspace((int)(unsigned char)*chall))
chall++;
if (!*chall)
break;
Expand Down

0 comments on commit 2525c1e

Please sign in to comment.