]> git.sur5r.net Git - u-boot/commitdiff
tools: fix imximage warning
authorKim Phillips <kim.phillips@freescale.com>
Tue, 23 Feb 2010 01:37:56 +0000 (19:37 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 23 Feb 2010 23:06:18 +0000 (00:06 +0100)
Fix build warning:

Configuring for MPC837XEMDS board...
imximage.c: In function `imximage_parse_cfg_file':
imximage.c:146: warning: passing argument 2 of `getline' from incompatible pointer type
/usr/include/bits/stdio.h:116: note: expected `size_t *' but argument is of type `uint32_t *'

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
tools/imximage.c

index 43da67800ef1b686026cb1c31122d44953f8ecfc..df2d8c4d7b56184842cc34273415e1beba17980d 100644 (file)
@@ -129,7 +129,7 @@ static uint32_t imximage_parse_cfg_file(struct imx_header *imxhdr, char *name)
        char *token, *saveptr1, *saveptr2;
        int lineno = 0;
        int fld, value;
-       uint32_t len;
+       size_t len;
        int dcd_len = 0;
        dcd_t *dcd = &imxhdr->dcd_table;
        int32_t cmd;