Skip to contentSkip to conversation

Fix compilation problem in common/cmd_bmp.c

PATCH New Anatolij Gustschin 3 participants 3 messages Jan 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation problem in common/cmd_bmp.c

common/cmd_bmp.c fails to compile if CONFIG_VIDEO_BMP_GZIP isn't defined. This patch fix this.

---
 common/cmd_bmp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_bmp.c +1 -1
index 2437e22..197e5e8 100644
@@ -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)
+static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
 {
 	return NULL;
 }
Signature · 1 line
1.5.3.3
#1 lore raw

PATCH 1/1 Fix compilation problem in common/cmd_bmp.c

common/cmd_bmp.c static bmp_image_t *gunzip_bmp(unsigned long addr, · line 89

Quoted 7 lines · On Fri, 11 Jan 2008 02:15:02 +0100 Anatolij Gustschin <[email protected]> wrote:
common/cmd_bmp.c +1 -1
@@ -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)
+static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long
 *lenp)

Ah, that's obviously correct. I guess I forgot to compile test with !CONFIG_VIDEO_BMP...sorry.

Haavard

#2 lore raw

PATCH 1/1 Fix compilation problem in common/cmd_bmp.c

In reply to Anatolij Gustschin
Quoted 5 lines · In message <[email protected]> you wrote:

common/cmd_bmp.c fails to compile if CONFIG_VIDEO_BMP_GZIP isn't defined. This patch fix this.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 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
Well, the way I see it, logic is only a way of being ignorant by num-
bers.                                 - Terry Pratchett, _Small Gods_