From: Mike Frysinger Date: Sat, 10 Nov 2012 19:47:45 +0000 (+0000) Subject: fw_env: fix type of len X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3779c8e319bd5e3fb32c3036cc0d3a658f920fa3;p=u-boot.git 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 Acked-by: Joe Hershberger --- diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 90c7a5d3f3..37b60b80a7 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;