mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
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>
This commit is contained in:
parent
2ea9a49bda
commit
bb6b1f68ed
@ -365,7 +365,7 @@ static void copy_file (int ifd, const char *datafile, int pad, int offset)
|
|||||||
struct stat sbuf;
|
struct stat sbuf;
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
int tail;
|
int tail;
|
||||||
int zero = 0;
|
uint64_t zero = 0;
|
||||||
uint8_t zeros[4096];
|
uint8_t zeros[4096];
|
||||||
int size, ret;
|
int size, ret;
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ static void copy_file(int ifd, const char *datafile, int pad, int offset,
|
|||||||
struct stat sbuf;
|
struct stat sbuf;
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
int tail;
|
int tail;
|
||||||
int zero = 0;
|
uint64_t zero = 0;
|
||||||
uint8_t zeros[4096];
|
uint8_t zeros[4096];
|
||||||
int size, ret;
|
int size, ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user