firmware-utils: mkhilinkfw: fix compiler warnings/errors
authorPetr Štetiar <ynezz@true.cz>
Mon, 22 Jul 2019 10:08:30 +0000 (12:08 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:07:23 +0000 (22:07 +0200)
commit3a84851d6403e723bf8fd46e4d3bf052f9f4100f
tree14f339696fa801ce8aa0af1f073e2ec50fce7e36
parent1627e8987f6cd71fcdba0b7b200d0b22378b20c4
firmware-utils: mkhilinkfw: fix compiler warnings/errors

mkhilinkfw.c:45:9: error: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Werror=sign-compare]
mkhilinkfw.c:45:16: error: operand of ?: changes signedness from ‘off_t’ {aka ‘long int’} to ‘long unsigned int’ due to unsignedness of other operand [-Werror=sign-compare]
mkhilinkfw.c:45:9: error: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Werror=sign-compare]
mkhilinkfw.c:45:16: error: operand of ?: changes signedness from ‘off_t’ {aka ‘long int’} to ‘long unsigned int’ due to unsignedness of other operand [-Werror=sign-compare]
mkhilinkfw.c:281:9: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]

Signed-off-by: Petr Štetiar <ynezz@true.cz>
tools/firmware-utils/src/mkhilinkfw.c