Skip to content

Commit 4fbedd4

Browse files
avargitster
authored andcommitted
archive-*.c: use designated initializers for "struct archiver"
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0cb9872 commit 4fbedd4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

archive-tar.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ static int write_tar_filter_archive(const struct archiver *ar,
461461
}
462462

463463
static struct archiver tar_archiver = {
464-
"tar",
465-
write_tar_archive,
466-
ARCHIVER_REMOTE
464+
.name = "tar",
465+
.write_archive = write_tar_archive,
466+
.flags = ARCHIVER_REMOTE,
467467
};
468468

469469
void init_tar_archiver(void)

archive-zip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,9 @@ static int write_zip_archive(const struct archiver *ar,
637637
}
638638

639639
static struct archiver zip_archiver = {
640-
"zip",
641-
write_zip_archive,
642-
ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE
640+
.name = "zip",
641+
.write_archive = write_zip_archive,
642+
.flags = ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE,
643643
};
644644

645645
void init_zip_archiver(void)

0 commit comments

Comments
 (0)