} else {
char *p = command_line;
- while (*p != 0 && !isspace(*p)) p++;
+ while (*p != 0 && !isspace(*(unsigned char *)p))
+ p++;
arg_file_name = CORD_to_char_star(
CORD_substr(command_line, 0, p - command_line));
}
register size_t i;
for (i = 0; i < len; i++) {
- if (iscntrl(text[i])) {
+ if (iscntrl(((unsigned char *)text)[i])) {
result[i] = ' ';
} else {
result[i] = text[i];
register size_t i;
for (i = 0; i < len; i++) {
- if (iscntrl(text[i])) {
+ if (iscntrl(((unsigned char *)text)[i])) {
result[i] = text[i] + 0x40;
} else {
result[i] = ' ';
char **prot, unsigned int *maj_dev,
char **mapping_name)
{
- char *start_start, *end_start, *maj_dev_start;
- char *p;
- char *endp;
+ unsigned char *start_start, *end_start, *maj_dev_start;
+ unsigned char *p; /* unsigned for isspace, isxdigit */
if (buf_ptr == NULL || *buf_ptr == '\0') {
return NULL;
}
- p = buf_ptr;
+ p = (unsigned char *)buf_ptr;
while (isspace(*p)) ++p;
start_start = p;
GC_ASSERT(isxdigit(*start_start));
- *start = (ptr_t)strtoul(start_start, &endp, 16); p = endp;
+ *start = (ptr_t)strtoul((char *)start_start, (char **)&p, 16);
GC_ASSERT(*p=='-');
++p;
end_start = p;
GC_ASSERT(isxdigit(*end_start));
- *end = (ptr_t)strtoul(end_start, &endp, 16); p = endp;
+ *end = (ptr_t)strtoul((char *)end_start, (char **)&p, 16);
GC_ASSERT(isspace(*p));
while (isspace(*p)) ++p;
GC_ASSERT(*p == 'r' || *p == '-');
- *prot = p;
+ *prot = (char *)p;
/* Skip past protection field to offset field */
while (!isspace(*p)) ++p; while (isspace(*p)) ++p;
GC_ASSERT(isxdigit(*p));
while (!isspace(*p)) ++p; while (isspace(*p)) ++p;
maj_dev_start = p;
GC_ASSERT(isxdigit(*maj_dev_start));
- *maj_dev = strtoul(maj_dev_start, NULL, 16);
+ *maj_dev = strtoul((char *)maj_dev_start, NULL, 16);
if (mapping_name == 0) {
while (*p && *p++ != '\n');
} else {
while (*p && *p != '\n' && *p != '/' && *p != '[') p++;
- *mapping_name = p;
+ *mapping_name = (char *)p;
while (*p && *p++ != '\n');
}
- return p;
+ return (char *)p;
}
#endif /* REDIRECT_MALLOC || DYNAMIC_LOADING || IA64 || ... */