From 9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 12 Sep 2007 07:05:52 +0000 Subject: - revert r19825. Fix this in the kernel instead and read README.buildroot2 --- package/config/conf.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'package/config/conf.c') diff --git a/package/config/conf.c b/package/config/conf.c index 5956a5254..9900e90ea 100644 --- a/package/config/conf.c +++ b/package/config/conf.c @@ -44,7 +44,7 @@ static void strip(char *str) while ((isspace(*p))) p++; - l = strlen((char *)p); + l = strlen(p); if (p != str) memmove(str, p, l + 1); if (!l) @@ -101,7 +101,7 @@ static void conf_askvalue(struct symbol *sym, const char *def) check_stdin(); case ask_all: fflush(stdout); - fgets((char *)line, 128, stdin); + fgets(line, 128, stdin); return; case set_default: printf("%s\n", def); @@ -194,8 +194,8 @@ int conf_string(struct menu *menu) break; } default: - line[strlen((char *)line)-1] = 0; - def = (char *)line; + line[strlen(line)-1] = 0; + def = line; } if (def && sym_set_string_value(sym, def)) return 0; @@ -243,7 +243,7 @@ static int conf_sym(struct menu *menu) case 'n': case 'N': newval = no; - if (!line[1] || !strcmp((char *)&line[1], "o")) + if (!line[1] || !strcmp(&line[1], "o")) break; continue; case 'm': @@ -255,7 +255,7 @@ static int conf_sym(struct menu *menu) case 'y': case 'Y': newval = yes; - if (!line[1] || !strcmp((char *)&line[1], "es")) + if (!line[1] || !strcmp(&line[1], "es")) break; continue; case 0: @@ -356,7 +356,7 @@ static int conf_choice(struct menu *menu) check_stdin(); case ask_all: fflush(stdout); - fgets((char *)line, 128, stdin); + fgets(line, 128, stdin); strip(line); if (line[0] == '?') { printf("\n%s\n", menu->sym->help ? @@ -366,7 +366,7 @@ static int conf_choice(struct menu *menu) if (!line[0]) cnt = def; else if (isdigit(line[0])) - cnt = atoi((char *)line); + cnt = atoi(line); else continue; break; @@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu) } if (!child) continue; - if (line[strlen((char *)line) - 1] == '?') { + if (line[strlen(line) - 1] == '?') { printf("\n%s\n", child->sym->help ? child->sym->help : nohelp_text); continue; -- cgit v1.2.3