summaryrefslogtreecommitdiff
path: root/tools/env
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-10 19:47:45 +0000
committerTom Rini <trini@ti.com>2012-12-19 15:51:57 -0700
commit3779c8e319bd5e3fb32c3036cc0d3a658f920fa3 (patch)
tree6254f25e96702cce568de09cdc2ee8a04b913d09 /tools/env
parent4823b45da2b5d434b1009f8b511a8fc846c7a252 (diff)
downloadu-boot-imx-3779c8e319bd5e3fb32c3036cc0d3a658f920fa3.zip
u-boot-imx-3779c8e319bd5e3fb32c3036cc0d3a658f920fa3.tar.gz
u-boot-imx-3779c8e319bd5e3fb32c3036cc0d3a658f920fa3.tar.bz2
fw_env: fix type of len
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 <vapier@gentoo.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/env')
-rw-r--r--tools/env/fw_env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 90c7a5d..37b60b80 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -429,7 +429,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;