summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.h
diff options
context:
space:
mode:
authorMarkus Klotzbücher <mk@denx.de>2007-11-27 10:23:20 +0100
committerWolfgang Denk <wd@denx.de>2008-01-09 09:51:12 +0100
commit64b3727b9779d86127cd576e392a987de5ebb9fd (patch)
tree3a7c11233db896f0e32bf4079f0c8e5327e60fe1 /tools/env/fw_env.h
parent74ac5facb988fc488a707db228b177ead63a6541 (diff)
downloadu-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.zip
u-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.tar.gz
u-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.tar.bz2
tools: fix fw_printenv tool to compile again
This patch updates the fw_printenv/fw_setenv userspace tool to include the correct MTD header in order to compile against current kernel headers. Backward compatibility is preserved by introducing an option MTD_VERSION which can be set to "old" for compilation using the old MTD headers. Along with this a number of warnings are fixed. Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r--tools/env/fw_env.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
index 13c45a2..58607de 100644
--- a/tools/env/fw_env.h
+++ b/tools/env/fw_env.h
@@ -47,8 +47,8 @@
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; " \
"bootm"
-extern void fw_printenv(int argc, char *argv[]);
-extern unsigned char *fw_getenv (unsigned char *name);
-extern int fw_setenv (int argc, char *argv[]);
+extern void fw_printenv(int argc, char *argv[]);
+extern char *fw_getenv (char *name);
+extern int fw_setenv (int argc, char *argv[]);
extern unsigned long crc32 (unsigned long, const unsigned char *, unsigned);