archive-*.c: use designated initializers for "struct archiver"
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
0cb9872eab
commit
4fbedd4dc0
@ -461,9 +461,9 @@ static int write_tar_filter_archive(const struct archiver *ar,
|
||||
}
|
||||
|
||||
static struct archiver tar_archiver = {
|
||||
"tar",
|
||||
write_tar_archive,
|
||||
ARCHIVER_REMOTE
|
||||
.name = "tar",
|
||||
.write_archive = write_tar_archive,
|
||||
.flags = ARCHIVER_REMOTE,
|
||||
};
|
||||
|
||||
void init_tar_archiver(void)
|
||||
|
@ -637,9 +637,9 @@ static int write_zip_archive(const struct archiver *ar,
|
||||
}
|
||||
|
||||
static struct archiver zip_archiver = {
|
||||
"zip",
|
||||
write_zip_archive,
|
||||
ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE
|
||||
.name = "zip",
|
||||
.write_archive = write_zip_archive,
|
||||
.flags = ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE,
|
||||
};
|
||||
|
||||
void init_zip_archiver(void)
|
||||
|
Loading…
Reference in New Issue
Block a user