summaryrefslogtreecommitdiffstats
path: root/package/config/conf.c
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-09-12 05:56:42 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-09-12 05:56:42 +0000
commit0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (patch)
tree8e393e37e222de5c53c5672cbc51b8a28cd936e3 /package/config/conf.c
parent079929e7647e9e7b327e215ef1fba6856a68bf67 (diff)
downloadbuildroot-novena-0c1a521ce5da7372aaeb9a58ca55b43ba94611b8.tar.gz
buildroot-novena-0c1a521ce5da7372aaeb9a58ca55b43ba94611b8.zip
Watching all the warnings on package/config finally got to me.
A patch that clears the gcc warnings from config with cast changes only. thanks, I feel better now, Rick Foos <rick@synchromeshcomputing.com>
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 9900e90ea..5956a5254 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(p);
+ l = strlen((char *)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(line, 128, stdin);
+ fgets((char *)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(line)-1] = 0;
- def = line;
+ line[strlen((char *)line)-1] = 0;
+ def = (char *)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(&line[1], "o"))
+ if (!line[1] || !strcmp((char *)&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(&line[1], "es"))
+ if (!line[1] || !strcmp((char *)&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(line, 128, stdin);
+ fgets((char *)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(line);
+ cnt = atoi((char *)line);
else
continue;
break;
@@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu)
}
if (!child)
continue;
- if (line[strlen(line) - 1] == '?') {
+ if (line[strlen((char *)line) - 1] == '?') {
printf("\n%s\n", child->sym->help ?
child->sym->help : nohelp_text);
continue;