X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=archive-tar.c;h=d9c30d33dc286fa2926c80f647304687ba13295b;hb=885b98107547fe3f6d17ca0af0578e040f7600d0;hp=7d52a061f4f8b5d29c52912889ca0d6ee46e4ee0;hpb=3ed02de2f46105cbc45fcc8f3287513f470eb4a3;p=git.git diff --git a/archive-tar.c b/archive-tar.c index 7d52a061f..d9c30d33d 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -262,7 +262,7 @@ static int write_tar_entry(const unsigned char *sha1, static struct strbuf path; int filenamelen = strlen(filename); void *buffer; - char type[20]; + enum object_type type; unsigned long size; if (!path.alloc) { @@ -283,7 +283,7 @@ static int write_tar_entry(const unsigned char *sha1, buffer = NULL; size = 0; } else { - buffer = read_sha1_file(sha1, type, &size); + buffer = read_sha1_file(sha1, &type, &size); if (!buffer) die("cannot read %s", sha1_to_hex(sha1)); }