aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-04-14 19:12:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-04-14 19:12:43 +0200
commit1a45b2ccea94b0fc123798f276a0801413597880 (patch)
tree3368e80011c915cc19d3a83463fd9c0f7c9c6180 /scripts/kconfig
parenteb1b2902b8b7b7effdba711645288c64884fd3e7 (diff)
downloadbusybox-w32-1a45b2ccea94b0fc123798f276a0801413597880.tar.gz
busybox-w32-1a45b2ccea94b0fc123798f276a0801413597880.tar.bz2
busybox-w32-1a45b2ccea94b0fc123798f276a0801413597880.zip
fix "warning array subscript has type 'char'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/conf.c6
-rw-r--r--scripts/kconfig/confdata.c2
-rw-r--r--scripts/kconfig/mconf.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 866a7c544..39ec1cdb6 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -44,7 +44,7 @@ static void strip(char *str)
44 char *p = str; 44 char *p = str;
45 int l; 45 int l;
46 46
47 while ((isspace(*p))) 47 while ((isspace((unsigned char)*p)))
48 p++; 48 p++;
49 l = strlen(p); 49 l = strlen(p);
50 if (p != str) 50 if (p != str)
@@ -52,7 +52,7 @@ static void strip(char *str)
52 if (!l) 52 if (!l)
53 return; 53 return;
54 p = str + l - 1; 54 p = str + l - 1;
55 while ((isspace(*p))) 55 while ((isspace((unsigned char)*p)))
56 *p-- = 0; 56 *p-- = 0;
57} 57}
58 58
@@ -401,7 +401,7 @@ static int conf_choice(struct menu *menu)
401 } 401 }
402 if (!line[0]) 402 if (!line[0])
403 cnt = def; 403 cnt = def;
404 else if (isdigit(line[0])) 404 else if (isdigit((unsigned char)line[0]))
405 cnt = atoi(line); 405 cnt = atoi(line);
406 else 406 else
407 continue; 407 continue;
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index b05b96e45..9976011a9 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -54,7 +54,7 @@ static char *conf_expand_value(const char *in)
54 strncat(res_value, in, src - in); 54 strncat(res_value, in, src - in);
55 src++; 55 src++;
56 dst = name; 56 dst = name;
57 while (isalnum(*src) || *src == '_') 57 while (isalnum((unsigned char)*src) || *src == '_')
58 *dst++ = *src++; 58 *dst++ = *src++;
59 *dst = 0; 59 *dst = 0;
60 sym = sym_lookup(name, 0); 60 sym = sym_lookup(name, 0);
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index c3a837a14..aaf82820e 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -771,7 +771,7 @@ static void conf(struct menu *menu)
771 if (!type) 771 if (!type)
772 continue; 772 continue;
773 773
774 for (i = 0; input_buf[i] && !isspace(input_buf[i]); i++) 774 for (i = 0; input_buf[i] && !isspace((unsigned char)input_buf[i]); i++)
775 ; 775 ;
776 if (i >= sizeof(active_entry)) 776 if (i >= sizeof(active_entry))
777 i = sizeof(active_entry) - 1; 777 i = sizeof(active_entry) - 1;