diff options
| author | Marek BehĂșn <[email protected]> | 2021-09-24 23:06:45 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-10-01 11:07:13 +0200 |
| commit | d8cc851dd12e5782d491daf46eea7b0b34758fc5 (patch) | |
| tree | 1c074230920fdab74d515b200ba621a79730824d | |
| parent | c5d666aab3a76a7c307f9261afcf4899ec7c6410 (diff) | |
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 <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
| -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 88353d19c0e..3d9f73e697e 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; |
