firmware-utils: pc1crypt: fix compiler warnings/errors
authorPetr Štetiar <ynezz@true.cz>
Sat, 20 Jul 2019 12:44:54 +0000 (14:44 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 20:07:23 +0000 (22:07 +0200)
commit2eb7521903903809b80951b54d27272e4d1c4372
treeea8aa08c05cd36b41a98e33e49ab665fbe3e056b
parent940f505233b305fc0528ac059d6f8ad52e5b481f
firmware-utils: pc1crypt: fix compiler warnings/errors

pc1crypt.c:170:12: error: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Werror=pointer-sign]
pc1crypt.c:218:21: error: unused variable ‘board’ [-Werror=unused-variable]
pc1crypt.c:326:26: error: pointer targets in passing argument 2 of ‘pc1_decrypt_buf’ differ in signedness [-Werror=pointer-sign]
pc1crypt.c:328:26: error: pointer targets in passing argument 2 of ‘pc1_encrypt_buf’ differ in signedness [-Werror=pointer-sign]
pc1crypt.c:343:2: error: label ‘out_flush’ defined but not used [-Werror=unused-label]
pc1crypt.c:319:3: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]

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