diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-24 10:33:02 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-25 00:59:20 +0100 |
commit | 4fbedd4dc0845d5aa5b56cefc7d0ac23602c210d (patch) | |
tree | c35f735cd986b566c4bd0ec164675dab61a5b2ca /archive-zip.c | |
parent | object-file: use designated initializers for "struct git_hash_algo" (diff) | |
download | git-4fbedd4dc0845d5aa5b56cefc7d0ac23602c210d.tar.xz git-4fbedd4dc0845d5aa5b56cefc7d0ac23602c210d.zip |
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>
Diffstat (limited to 'archive-zip.c')
-rw-r--r-- | archive-zip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archive-zip.c b/archive-zip.c index 2961e01c75..90fe99eaae 100644 --- a/archive-zip.c +++ b/archive-zip.c @@ -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) |