firmware-utils: mkdapimg2: fix compiler warnings/errors
authorPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:56:11 +0000 (22:56 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:56:11 +0000 (22:56 +0200)
commit7f5df37d282c38de00224589f4578aea0ee7d743
treea3b17969ccbc21bee36128cddde977a007838cf9
parent46def9a49401d0afe3d33771686dd48ca911de52
firmware-utils: mkdapimg2: fix compiler warnings/errors

mkdapimg2.c:181:48: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
mkdapimg2.c:185:7: error: ‘ofile’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
mkdapimg2.c:193:2: error: ‘ifile’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

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