Bug 2924: RADIUS helper compile issues
if (*addr == '.') {
dot_count++;
digit_count = 0;
- } else if (!isdigit(*addr)) {
+ } else if (!isdigit((int)*addr)) {
dot_count = 5;
} else {
digit_count++;
count = 0;
*ptr = '\0';
while (*ip_str != '.' && *ip_str != '\0' && count < 4) {
- if (!isdigit(*ip_str)) {
+ if (!isdigit((int)*ip_str)) {
return((u_int32_t)0);
}
*ptr++ = *ip_str++;
/* Parse out the username and password */
ptr = authstring;
- while (isspace(*ptr))
+ while (isspace((int)*ptr))
ptr++;
if ((end = strchr(ptr, ' ')) == NULL) {
printf("ERR\n"); /* No password */
*end = '\0';
urldecode(username, ptr, MAXPWNAM);
ptr = end + 1;
- while (isspace(*ptr))
+ while (isspace((int)*ptr))
ptr++;
urldecode(passwd, ptr, MAXPASS);