From f15f736d38d10f5c4f2ca367565019bdfe8e71dd Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Fri, 25 Jul 2008 12:41:24 +0200 Subject: archive: declare struct archiver where it's needed Move the declaration of struct archiver to archive.c, as this is the only file left where it is used. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- archive.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archive.c') diff --git a/archive.c b/archive.c index c4662a2830..f834b5f51f 100644 --- a/archive.c +++ b/archive.c @@ -9,7 +9,11 @@ static const char archive_usage[] = \ #define USES_ZLIB_COMPRESSION 1 -const struct archiver archivers[] = { +const struct archiver { + const char *name; + write_archive_fn_t write_archive; + unsigned int flags; +} archivers[] = { { "tar", write_tar_archive }, { "zip", write_zip_archive, USES_ZLIB_COMPRESSION }, }; -- cgit v1.2.1