Skip to contentSkip to conversation

Remove static declaration from gunzip_bmp()

PATCH New Mark Jackson 2 participants 2 messages Jul 21, 2009 – Jul 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove static declaration from gunzip_bmp()

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.

---
 common/cmd_bmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_bmp.c +2 -2
index fc8462e..27d5896 100644
@@ -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;
 }
#1 lore raw

PATCH 1/1 Remove static declaration from gunzip_bmp()

Dear Mark Jackson,

Quoted 9 lines · In message <[email protected]> you wrote:

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.

---
 common/cmd_bmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
We, the unwilling, led by the unknowing, are doing the impossible for
the ungrateful. We have done so much, for so long, with so little, we
are now qualified to do anything with nothing.