mconf compile under Solaris.
char *p = str;
int l;
- while ((isspace(*p)))
+ while ((isspace((int)*p)))
p++;
l = strlen(p);
if (p != str)
if (!l)
return;
p = str + l - 1;
- while ((isspace(*p)))
+ while ((isspace((int)*p)))
*p-- = 0;
}
continue;
}
if (line[0]) {
- len = strlen(line) - 1;
+ len = strlen(line);
line[len] = 0;
def_menu = NULL;
strncat(res_value, in, src - in);
src++;
dst = name;
- while (isalnum(*src) || *src == '_')
+ while (isalnum((int)*src) || *src == '_')
*dst++ = *src++;
*dst = 0;
sym = sym_lookup(name, 0);
#include <sys/ioctl.h>
#include <sys/wait.h>
+#include <sys/termios.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
if (!type)
continue;
- for (i = 0; input_buf[i] && !isspace(input_buf[i]); i++)
+ for (i = 0; input_buf[i] && !isspace((int)input_buf[i]); i++)
;
if (i >= sizeof(active_entry))
i = sizeof(active_entry) - 1;
ch = *str++;
if (ch == '-')
ch = *str++;
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
if (ch == '0' && *str != 0)
return false;
while ((ch = *str++)) {
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
}
return true;
str += 2;
ch = *str++;
do {
- if (!isxdigit(ch))
+ if (!isxdigit((int)ch))
return false;
} while ((ch = *str++));
return true;