mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
[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>
This commit is contained in:
parent
f10e0e0b18
commit
96ad15ae2f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user