diff options
author | Peng Fan <peng.fan@nxp.com> | 2021-03-19 10:56:53 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-04-08 10:18:29 +0300 |
commit | 16841a6a500766662f6e5d3c07ad1595c7deaceb (patch) | |
tree | 3f582b034d1628f98e3ec2a40846bcb0de33b3e1 /tools | |
parent | e9c99db7787e3b5c2ef05701177c43ed1c023c27 (diff) | |
download | u-boot-16841a6a500766662f6e5d3c07ad1595c7deaceb.tar.xz |
tools: imx image: fix write warning
Fix the warning by set the variable zero to uint64_t
"warning: ‘write’ reading 5 bytes from a region of size 4"
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/imx8image.c | 2 | ||||
-rw-r--r-- | tools/imx8mimage.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c index 133780f5ea..fa8f227487 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -365,7 +365,7 @@ static void copy_file (int ifd, const char *datafile, int pad, int offset) struct stat sbuf; unsigned char *ptr; int tail; - int zero = 0; + uint64_t zero = 0; uint8_t zeros[4096]; int size, ret; diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c index 9985b95a98..11e40ccd94 100644 --- a/tools/imx8mimage.c +++ b/tools/imx8mimage.c @@ -248,7 +248,7 @@ static void copy_file(int ifd, const char *datafile, int pad, int offset, struct stat sbuf; unsigned char *ptr; int tail; - int zero = 0; + uint64_t zero = 0; uint8_t zeros[4096]; int size, ret; |