summaryrefslogtreecommitdiffstats
path: root/archive-zip.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-07 06:25:32 +0100
committerJunio C Hamano <gitster@pobox.com>2022-03-07 06:25:32 +0100
commit20d34c07ea4d44e362e5b8f0924a9c63a73a5e43 (patch)
tree578d4400d6abea1b187c734896bc6c0bc4be8228 /archive-zip.c
parentMerge branch 'mc/index-pack-report-max-size' (diff)
parentfast-import.c: use designated initializers for "partial" struct assignments (diff)
downloadgit-20d34c07ea4d44e362e5b8f0924a9c63a73a5e43.tar.xz
git-20d34c07ea4d44e362e5b8f0924a9c63a73a5e43.zip
Merge branch 'ab/c99-designated-initializers'
Use designated initializers we started using in mid 2017 in more parts of the codebase that are relatively quiescent. * ab/c99-designated-initializers: fast-import.c: use designated initializers for "partial" struct assignments refspec.c: use designated initializers for "struct refspec_item" convert.c: use designated initializers for "struct stream_filter*" userdiff.c: use designated initializers for "struct userdiff_driver" archive-*.c: use designated initializers for "struct archiver" object-file: use designated initializers for "struct git_hash_algo" trace2: use designated initializers for "struct tr2_dst" trace2: use designated initializers for "struct tr2_tgt" imap-send.c: use designated initializers for "struct imap_server_conf"
Diffstat (limited to 'archive-zip.c')
-rw-r--r--archive-zip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/archive-zip.c b/archive-zip.c
index 8ea9d1a5da..9fe43d740d 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -638,9 +638,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)