firmware-utils: mkfwimage: fix build failure on macOS with gcc 9
authorPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 21:04:23 +0000 (23:04 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 21:04:23 +0000 (23:04 +0200)
commit1e6c122b17a404a20327808394e922356fe9f937
treeb7c77f1590c41ae69388003959af11cd4f8455c4
parent15df43d4e7b94bfacd25823f1c035c84e935b2ed
firmware-utils: mkfwimage: fix build failure on macOS with gcc 9

Fixes following errors:

 src/mkfwimage.c:279:8: error: format specifies type 'long' but the argument has type 'off_t' (aka 'long long') [-Werror,-Wformat]
                      d->stats.st_size,
                     ^~~~~~~~~~~~~~~~
 src/mkfwimage.c:280:8: error: format specifies type 'long' but the argument has type 'long long' [-Werror,-Wformat]
                      d->partition_length - d->stats.st_size);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 src/mkfwimage.c:378:6: error: format specifies type 'unsigned long' but the argument has type 'long long' [-Werror,-Wformat]
                      d->stats.st_size - d->partition_length);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
src/mkfwimage.c