summaryrefslogtreecommitdiffstats
path: root/commands/loads.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2011-08-22 22:45:36 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-23 08:33:24 +0200
commit251af937c3e0234f403b2405e9d5b9e6458fdeb8 (patch)
treebc4a9b7bd0d8b124ccb6b338baabc796dcab68f9 /commands/loads.c
parent7d9ee32f05de7d5cfe780c19167e7e7c59745370 (diff)
downloadbarebox-251af937c3e0234f403b2405e9d5b9e6458fdeb8.tar.gz
commands/loads.c: fix compiler's warning
Fix 'assignment discards qualifiers from pointer target type' warning. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/loads.c')
-rw-r--r--commands/loads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/loads.c b/commands/loads.c
index 71fdeba..6aef557 100644
--- a/commands/loads.c
+++ b/commands/loads.c
@@ -45,7 +45,7 @@ int do_load_serial(struct command *cmdtp, int argc, char *argv[])
ulong offset = 0;
ulong addr;
int i;
- char *env_echo;
+ const char *env_echo;
int rcode = 0;
if (((env_echo = getenv("loads_echo")) != NULL) && (*env_echo == '1')) {