diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-09-25 00:06:45 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-10-01 12:07:13 +0300 |
commit | d8cc851dd12e5782d491daf46eea7b0b34758fc5 (patch) | |
tree | 1c074230920fdab74d515b200ba621a79730824d /tools | |
parent | c5d666aab3a76a7c307f9261afcf4899ec7c6410 (diff) | |
download | u-boot-d8cc851dd12e5782d491daf46eea7b0b34758fc5.tar.xz |
tools: kwboot: Fix comparison of integers with different size
The compiler complains that we are comparing int with size_t when
compiled with -W.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwboot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index 88353d19c0..3d9f73e697 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -352,8 +352,7 @@ kwboot_xm_makeblock(struct kwboot_block *block, const void *data, size_t size, int pnum) { const size_t blksz = sizeof(block->data); - size_t n; - int i; + size_t i, n; block->soh = SOH; block->pnum = pnum; |