Skip to contentSkip to conversation

tools: fix imximage warning: passing argument 2 of ‘getline’ from incompatible pointer type

PATCH New Kim Phillips 2 participants 2 messages Feb 23, 2010 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: fix imximage warning: passing argument 2 of ‘getline’ from incompatible pointer type

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 *?

---
 tools/imximage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/imximage.c +1 -1
index 43da678..df2d8c4 100644
@@ -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;
Signature · 1 line
1.7.0
#1 lore raw

PATCH 1/1 tools: fix imximage warning: passing argument 2 of ‘getline’ from incompatible pointer type

Dear Kim Phillips,

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

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 *?

---
 tools/imximage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
A consultant is a person who borrows your watch, tells you what  time
it is, pockets the watch, and sends you a bill for it.