aboutsummaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-08-09 16:54:40 -0400
committerJunio C Hamano <junkio@cox.net>2005-08-09 22:28:18 -0700
commit96ad15ae2ff6416cf04c4c75a11783632cdc8fb4 (patch)
tree372eacd07ae0ef4c2486e9f4645d1101027a039a /sha1_file.c
parentf10e0e0b18c8e2e69535e7380fb3c1f9b097cfda (diff)
downloadgit-96ad15ae2ff6416cf04c4c75a11783632cdc8fb4.tar.gz
[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 <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index e9285c144e..8d189d4919 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);