From 96ad15ae2ff6416cf04c4c75a11783632cdc8fb4 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 9 Aug 2005 16:54:40 -0400 Subject: [PATCH] [PATCH] Warning fix for gcc 4 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 Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- sha1_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha1_file.c b/sha1_file.c index e9285c144..8d189d491 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1388,7 +1388,7 @@ int write_sha1_from_fd(const unsigned char *sha1, int fd, char *buffer, 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); -- 2.30.2