summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f10e0e0)
raw | patch | inline | side by side (parent: f10e0e0)
author | Pavel Roskin <proski@gnu.org> | |
Tue, 9 Aug 2005 20:54:40 +0000 (16:54 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 10 Aug 2005 05:28:18 +0000 (22:28 -0700) |
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>
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>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index e9285c144e05b4b3528c7a96025730dd9a7b3668..8d189d4919f83c243c306973285cefb5b55e2f19 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
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);