unsigned char-correctness

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5269 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-12-20 15:36:03 +00:00
parent 963049f0fa
commit fb8d7e5910
3 changed files with 20 additions and 17 deletions

View File

@@ -84,7 +84,7 @@ parse_something (const char *s, const struct units *units,
size_t u_len;
unsigned partial;
while(isspace(*p) || *p == ',')
while(isspace((unsigned char)*p) || *p == ',')
++p;
val = strtod (p, &next); /* strtol(p, &next, 0); */
@@ -93,7 +93,7 @@ parse_something (const char *s, const struct units *units,
return -1;
}
p = next;
while (isspace(*p))
while (isspace((unsigned char)*p))
++p;
if (*p == '\0') {
res = (*func)(res, val, def_mult);