Remove static declaration from gunzip_bmp()
authorMark Jackson <mpfj-list@mimc.co.uk>
Tue, 21 Jul 2009 10:30:53 +0000 (11:30 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 23 Jul 2009 19:34:01 +0000 (21:34 +0200)
This patch removes the static declaration from gunzip_bmp()

Without it, the gunzip_bmp() function is not visible to
common/lcd.c and fails to compile with an error.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
common/cmd_bmp.c

index fc8462ead1987f9775be4f4ab22a6a0b82e7ff75..27d5896af9060409a50a02f72e726daec5f8c300 100644 (file)
@@ -46,7 +46,7 @@ int gunzip(void *, int, unsigned char *, unsigned long *);
  * didn't contain a valid BMP signature.
  */
 #ifdef CONFIG_VIDEO_BMP_GZIP
-static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
+bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
        void *dst;
        unsigned long len;
@@ -85,7 +85,7 @@ static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
        return bmp;
 }
 #else
-static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
+bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
        return NULL;
 }