diff options
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r-- | scripts/kconfig/conf.c | 6 |
1 files changed, 3 insertions, 3 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; |