aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-09-24 23:06:45 +0200
committerStefan Roese <sr@denx.de>2021-10-01 11:07:13 +0200
commitd8cc851dd12e5782d491daf46eea7b0b34758fc5 (patch)
tree1c074230920fdab74d515b200ba621a79730824d /tools
parentc5d666aab3a76a7c307f9261afcf4899ec7c6410 (diff)
downloadu-boot-d8cc851dd12e5782d491daf46eea7b0b34758fc5.zip
u-boot-d8cc851dd12e5782d491daf46eea7b0b34758fc5.tar.gz
u-boot-d8cc851dd12e5782d491daf46eea7b0b34758fc5.tar.bz2
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 88353d1..3d9f73e 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;