[PATCH 1/6] image_renderer: fix size type
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Wed Sep 26 05:58:59 EDT 2012
/opt/work/barebox/lib/image_renderer.c: In function 'image_renderer_open':
/opt/work/barebox/lib/image_renderer.c:37:2: warning: passing argument 2 of 'read_file' from incompatible pointer type [enabled by default]
In file included from /opt/work/barebox/lib/image_renderer.c:11:0:
/opt/work/barebox/include/fs.h:167:7: note: expected 'size_t *' but argument is of type 'int *'
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
lib/image_renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/image_renderer.c b/lib/image_renderer.c
index b08f6bf..fff35bd 100644
--- a/lib/image_renderer.c
+++ b/lib/image_renderer.c
@@ -29,7 +29,7 @@ static struct image_renderer *get_renderer(void* buf)
struct image *image_renderer_open(const char* file)
{
void *data;
- int size;
+ size_t size;
struct image_renderer *ir;
struct image *img;
int ret;
--
1.7.10.4
More information about the barebox
mailing list