Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Test and fix normalize_path_copy()
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 88035a0cd19d040c8b626684c3ff1f7fdb35e837..0cfea9edc15402a38bbd195104c54e103b05f5a9 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2280,7
+2280,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;