diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2017-03-20 09:59:52 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 08:23:21 +0200 |
commit | ae4b754a7a88d59da732056dfe649bf7030e06a3 (patch) | |
tree | cd6cc9172f3a681292fbec80d7807be85e664ef5 /lib | |
parent | 441e9f5a72b245b671118f3e771eb129834a7a34 (diff) | |
download | barebox-ae4b754a7a88d59da732056dfe649bf7030e06a3.tar.gz barebox-ae4b754a7a88d59da732056dfe649bf7030e06a3.tar.xz |
gui: bmp.c: fix "no previous prototype" warning
The patch fixes these compiler's warnings:
lib/gui/bmp.c:12:15: warning: no previous prototype for 'bmp_open' [-Wmissing-prototypes]
struct image *bmp_open(char *inbuf, int insize)
^
lib/gui/bmp.c:33:6: warning: no previous prototype for 'bmp_close' [-Wmissing-prototypes]
void bmp_close(struct image *img)
^
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gui/bmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c index 143aa28055..8bffc70a42 100644 --- a/lib/gui/bmp.c +++ b/lib/gui/bmp.c @@ -9,7 +9,7 @@ #include <gui/image_renderer.h> #include <asm/unaligned.h> -struct image *bmp_open(char *inbuf, int insize) +static struct image *bmp_open(char *inbuf, int insize) { struct image *img = calloc(1, sizeof(struct image)); struct bmp_image *bmp = (struct bmp_image*)inbuf; @@ -30,7 +30,7 @@ struct image *bmp_open(char *inbuf, int insize) return img; } -void bmp_close(struct image *img) +static void bmp_close(struct image *img) { free(img->data); } |