firmware-utils: xorimage: fix compiler warnings/errors
authorPetr Štetiar <ynezz@true.cz>
Sat, 20 Jul 2019 11:52:44 +0000 (13:52 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:07:23 +0000 (22:07 +0200)
commit7c3b6ff741d6f386dd98d90468f5379cbae4ebad
treea6c91fedf672a565f4d93e560202d31fcecfb1c0
parentf46f8149ea3eb693b24554db7462285d987daad6
firmware-utils: xorimage: fix compiler warnings/errors

xorimage.c:113:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
xorimage.c:142:21: error: pointer targets in passing argument 1 of ‘xor_data’ differ in signedness [-Werror=pointer-sign]
xorimage.c:142:29: error: pointer targets in passing argument 3 of ‘xor_data’ differ in signedness [-Werror=pointer-sign]
xorimage.c:145:21: error: pointer targets in passing argument 1 of ‘xor_data’ differ in signedness [-Werror=pointer-sign]
xorimage.c:145:29: error: pointer targets in passing argument 3 of ‘xor_data’ differ in signedness [-Werror=pointer-sign]
xorimage.c:64:14: error: unused variable ‘v2’ [-Werror=unused-variable]
xorimage.c:64:10: error: unused variable ‘v1’ [-Werror=unused-variable]
xorimage.c:64:6: error: unused variable ‘v0’ [-Werror=unused-variable]

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