Re: [U-Boot] [PATCH 1/3] fw_env: fix type of len

2012-12-15 Thread Joe Hershberger
Hi Mike,

On Sat, Nov 10, 2012 at 11:47 PM, Mike Frysinger vap...@gentoo.org wrote:
 This variable is assigned by a size_t, and is printed that way, but is
 incorrectly declared as an int.  Which means we get warnings:
 fw_env.c: In function 'fw_setenv':
 fw_env.c:409:5: warning: format '%zu' expects argument of type 'size_t',
 but argument 3 has type 'int' [-Wformat]

 Signed-off-by: Mike Frysinger vap...@gentoo.org
 ---

Acked-by: Joe Hershberger joe.hershber...@ni.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/3] fw_env: fix type of len

2012-11-10 Thread Mike Frysinger
This variable is assigned by a size_t, and is printed that way, but is
incorrectly declared as an int.  Which means we get warnings:
fw_env.c: In function 'fw_setenv':
fw_env.c:409:5: warning: format '%zu' expects argument of type 'size_t',
but argument 3 has type 'int' [-Wformat]

Signed-off-by: Mike Frysinger vap...@gentoo.org
---
 tools/env/fw_env.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 9b023e8..02f97c0 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -379,7 +379,8 @@ int fw_env_write(char *name, char *value)
  */
 int fw_setenv(int argc, char *argv[])
 {
-   int i, len;
+   int i;
+   size_t len;
char *name;
char *value = NULL;
 
-- 
1.7.12.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot