git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9c99db
)
tools: imx image: fix write warning
author
Peng Fan
<peng.fan@nxp.com>
Fri, 19 Mar 2021 07:56:53 +0000
(15:56 +0800)
committer
Stefano Babic
<sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000
(09:18 +0200)
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>
tools/imx8image.c
patch
|
blob
|
history
tools/imx8mimage.c
patch
|
blob
|
history
diff --git
a/tools/imx8image.c
b/tools/imx8image.c
index
133780f
..
fa8f227
100644
(file)
--- 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;
-
in
t zero = 0;
+
uint64_
t zero = 0;
uint8_t zeros[4096];
int size, ret;
diff --git
a/tools/imx8mimage.c
b/tools/imx8mimage.c
index
9985b95
..
11e40cc
100644
(file)
--- 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;
-
in
t zero = 0;
+
uint64_
t zero = 0;
uint8_t zeros[4096];
int size, ret;