summaryrefslogtreecommitdiffstats
path: root/package/config/conf.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-12 07:05:52 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-12 07:05:52 +0000
commit9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29 (patch)
tree33c2e9bb5961c2a517208b05c7f4b22c14b82038 /package/config/conf.c
parent0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (diff)
downloadbuildroot-novena-9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29.tar.gz
buildroot-novena-9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29.zip
- revert r19825. Fix this in the kernel instead and read README.buildroot2
Diffstat (limited to 'package/config/conf.c')
-rw-r--r--package/config/conf.c18
1 files changed, 9 insertions, 9 deletions
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;