diff options
| author | Markus Klotzbücher <mk@denx.de> | 2007-11-27 10:23:20 +0100 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-01-08 22:53:01 +0100 | 
| commit | 6de66b35426312a21174a9bf0576a094e2904bea (patch) | |
| tree | 669558857036d28d3823ae7968490dd2c525c93e /tools/env/fw_env.h | |
| parent | ce37422d0002e10490e268392e0c4e3028e52cec (diff) | |
| download | olio-uboot-2014.01-6de66b35426312a21174a9bf0576a094e2904bea.tar.xz olio-uboot-2014.01-6de66b35426312a21174a9bf0576a094e2904bea.zip | |
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.h | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 13c45a278..58607ded5 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); |