fix "warning array subscript has type 'char'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index 19f82df..426b488 100644
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -226,10 +226,10 @@
void parse_config_file(char *map, size_t len)
{
/* modified for bbox */
- char *end_3 = map + len - 3; /* 3 == length of "IF_" */
- char *end_7 = map + len - 7;
- char *p = map;
- char *q;
+ unsigned char *end_3 = (unsigned char *)map + len - 3; /* 3 == length of "IF_" */
+ unsigned char *end_7 = (unsigned char *)map + len - 7;
+ unsigned char *p = (unsigned char *)map;
+ unsigned char *q;
int off;
for (; p <= end_3; p++) {
@@ -263,7 +263,7 @@
break;
}
if (q != p) {
- use_config(p, q-p);
+ use_config((char*)p, q - p);
}
}
}
@@ -335,7 +335,7 @@
p = m;
while (p < end && *p != ' ') p++;
if (p == end) {
- do p--; while (!isalnum(*p));
+ do p--; while (!isalnum((unsigned char)*p));
p++;
}
memcpy(s, m, p-m); s[p-m] = 0;