mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-02 07:31:11 +01:00
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>
This commit is contained in:
parent
4823b45da2
commit
3779c8e319
1 changed files with 2 additions and 1 deletions
3
tools/env/fw_env.c
vendored
3
tools/env/fw_env.c
vendored
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue