diff options
author | Wolfgang Wegner <w.wegner@astro-kom.de> | 2009-12-09 15:16:47 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-21 21:39:59 +0100 |
commit | 87d93a1ba2ae23550e1370adb7a3b00af0831165 (patch) | |
tree | d978d96503acbb9f26ea3d83db7e8682bf89e76b /common | |
parent | f7767c7541a8cdae55655d10f039a5bc62894ee8 (diff) | |
download | u-boot-imx-87d93a1ba2ae23550e1370adb7a3b00af0831165.zip u-boot-imx-87d93a1ba2ae23550e1370adb7a3b00af0831165.tar.gz u-boot-imx-87d93a1ba2ae23550e1370adb7a3b00af0831165.tar.bz2 |
move prototypes for gunzip() and zunzip() to common.h
Prototype for gunzip/zunzip was only in lib_generic/gunzip.c and thus
repeated in every file using it. This patch moves the prototypes to
common.h and removes all prototypes distributed anywhere else.
Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_bmp.c | 2 | ||||
-rw-r--r-- | common/cmd_bootm.c | 1 | ||||
-rw-r--r-- | common/cmd_license.c | 1 | ||||
-rw-r--r-- | common/cmd_mem.c | 2 |
4 files changed, 0 insertions, 6 deletions
diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c index faa10a4..74ab24c 100644 --- a/common/cmd_bmp.c +++ b/common/cmd_bmp.c @@ -35,8 +35,6 @@ static int bmp_info (ulong addr); static int bmp_display (ulong addr, int x, int y); -int gunzip(void *, int, unsigned char *, unsigned long *); - /* * Allocate and decompress a BMP image using gunzip(). * diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index efd6aec..94ddac3 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -63,7 +63,6 @@ DECLARE_GLOBAL_DATA_PTR; -extern int gunzip (void *dst, int dstlen, unsigned char *src, unsigned long *lenp); #ifndef CONFIG_SYS_BOOTM_LEN #define CONFIG_SYS_BOOTM_LEN 0x800000 /* use 8MByte as default max gunzip size */ #endif diff --git a/common/cmd_license.c b/common/cmd_license.c index c6f272a..85a4871 100644 --- a/common/cmd_license.c +++ b/common/cmd_license.c @@ -29,7 +29,6 @@ #include <command.h> #include <malloc.h> #include <license.h> -int gunzip(void *, int, unsigned char *, unsigned long *); int do_license(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { diff --git a/common/cmd_mem.c b/common/cmd_mem.c index a34b342..1839330 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -1225,8 +1225,6 @@ int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #endif #ifdef CONFIG_CMD_UNZIP -int gunzip (void *, int, unsigned char *, unsigned long *); - int do_unzip ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { unsigned long src, dst; |