diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 19:12:43 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 19:12:43 +0200 |
commit | 1a45b2ccea94b0fc123798f276a0801413597880 (patch) | |
tree | 3368e80011c915cc19d3a83463fd9c0f7c9c6180 /scripts/basic/split-include.c | |
parent | eb1b2902b8b7b7effdba711645288c64884fd3e7 (diff) | |
download | busybox-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/basic/split-include.c')
-rw-r--r-- | scripts/basic/split-include.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index a38ac3427..6ef29195e 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c | |||
@@ -116,7 +116,7 @@ int main(int argc, const char * argv []) | |||
116 | /* We found #define CONFIG_foo or #undef CONFIG_foo. | 116 | /* We found #define CONFIG_foo or #undef CONFIG_foo. |
117 | * Make the output file name. */ | 117 | * Make the output file name. */ |
118 | str_config += sizeof(" CONFIG_") - 1; | 118 | str_config += sizeof(" CONFIG_") - 1; |
119 | for (itarget = 0; !isspace(str_config[itarget]); itarget++) | 119 | for (itarget = 0; !isspace((unsigned char)str_config[itarget]); itarget++) |
120 | { | 120 | { |
121 | int c = (unsigned char) str_config[itarget]; | 121 | int c = (unsigned char) str_config[itarget]; |
122 | if (isupper(c)) c = tolower(c); | 122 | if (isupper(c)) c = tolower(c); |