Skip to contentSkip to conversation

cmd_nand : fix compiler warning.

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Jan 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_nand : fix compiler warning.

common/cmd_nand.c +2 -2
index b248a2c..8d6c959 100644
@@ -350,10 +350,10 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 		} else if (s != NULL && !strcmp(s, ".oob")) {
 			/* read out-of-band data */
 			if (read)
-				ret = nand->read_oob(nand, off, size, &size,
+				ret = nand->read_oob(nand, off, size, (size_t *) &size,
 						     (u_char *) addr);
 			else
-				ret = nand->write_oob(nand, off, size, &size,
+				ret = nand->write_oob(nand, off, size, (size_t *) &size,
 						      (u_char *) addr);
 		} else {
 			if (read)
Signature · 1 line
1.5.3.7
#1 lore raw

PATCH 1/1 cmd_nand : fix compiler warning.

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

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
Motto of the Electrical Engineer: Working computer hardware is a  lot
like an erect penis: it stays up as long as you don't fuck with it.