aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Wegner <w.wegner@astro-kom.de>2009-12-09 15:16:47 +0100
committerWolfgang Denk <wd@denx.de>2009-12-21 21:39:59 +0100
commit87d93a1ba2ae23550e1370adb7a3b00af0831165 (patch)
treed978d96503acbb9f26ea3d83db7e8682bf89e76b /common
parentf7767c7541a8cdae55655d10f039a5bc62894ee8 (diff)
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.c2
-rw-r--r--common/cmd_bootm.c1
-rw-r--r--common/cmd_license.c1
-rw-r--r--common/cmd_mem.c2
4 files changed, 0 insertions, 6 deletions
diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
index faa10a414..74ab24ca9 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 efd6aec0c..94ddac37c 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 c6f272ad3..85a4871de 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 a34b342f0..183933076 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;