From: Marek BehĂșn Date: Fri, 24 Sep 2021 21:06:45 +0000 (+0200) Subject: tools: kwboot: Fix comparison of integers with different size X-Git-Tag: baikal/mips/sdk5.9~15^2^2~102^2~2^2~31 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=84f3dcf479915e9b88b1f51b2b1db7f430d95388;p=uboot.git 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 Reviewed-by: Stefan Roese --- 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;