Skip to contentSkip to conversation

Warning fix for gcc 4

PATCH New Pavel Roskin 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Warning fix for gcc 4

Hello!

This patch fixes the only warning reported by gcc 4.0.1 on Fedora Core 4 for x86_64:

sha1_file.c:1391: warning: pointer targets in assignment differ in signedness

sha1_file.c +1 -1
@@ -1388,7 +1388,7 @@ int write_sha1_from_fd(const unsigned ch
 		ssize_t size;
 		if (*bufposn) {
 			stream.avail_in = *bufposn;
-			stream.next_in = buffer;
+			stream.next_in = (unsigned char *) buffer;
 			do {
 				stream.next_out = discard;
 				stream.avail_out = sizeof(discard);
Signature · 2 lines
Regards,
Pavel Roskin