Skip to contentSkip to conversation

cmd_mem.c: Update 'iteration_limit' to unsigned long

PATCH New Tom Rini 1 participant 2 messages Apr 7, 2015

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 cmd_mem.c: Update 'iteration_limit' to unsigned long

With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning:
../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *'

---
 common/cmd_mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_mem.c +1 -1
index 20a875c..3f85c1a 100644
@@ -999,7 +999,7 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc,
 {
 	ulong start, end;
 	vu_long *buf, *dummy;
-	int iteration_limit = 0;
+	ulong iteration_limit = 0;
 	int ret;
 	ulong errs = 0;	/* number of errors, or -1 if interrupted */
 	ulong pattern = 0;
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 cmd_mem.c: Update 'iteration_limit' to unsigned long

Quoted 6 lines · Tom Rini

With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning:
../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *'

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150407/522ebff6/attachment.sig>