summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-29 09:32:52 +0100
committerJunio C Hamano <gitster@pobox.com>2009-01-29 09:32:52 +0100
commit8c95d3c31b5493ea229808669c811ad9102143fe (patch)
tree70ddc31a745d78f57ac09f707e8ec721ade76556 /sha1_file.c
parentSimplify t3412 (diff)
parentGIT 1.6.1.2 (diff)
downloadgit-8c95d3c31b5493ea229808669c811ad9102143fe.tar.xz
git-8c95d3c31b5493ea229808669c811ad9102143fe.zip
Sync with 1.6.1.2
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 360f7e5a02..8868b800cb 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2340,7 +2340,8 @@ static int create_tmpfile(char *buffer, size_t bufsiz, const char *filename)
static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
void *buf, unsigned long len, time_t mtime)
{
- int fd, size, ret;
+ int fd, ret;
+ size_t size;
unsigned char *compressed;
z_stream stream;
char *filename;