From fcb133e978e98cf92de3ec7dedd4969802191b13 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 24 Jan 2019 08:11:51 -0500 Subject: create_bundle(): drop unused "header" parameter There's no need to pass a header struct to create_bundle(); it writes the header information directly to a descriptor (and does not report back details to the caller). Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- bundle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle.c') diff --git a/bundle.c b/bundle.c index 37b1daa691..b45666c49b 100644 --- a/bundle.c +++ b/bundle.c @@ -424,8 +424,8 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs) return ref_count; } -int create_bundle(struct repository *r, struct bundle_header *header, - const char *path, int argc, const char **argv) +int create_bundle(struct repository *r, const char *path, + int argc, const char **argv) { struct lock_file lock = LOCK_INIT; int bundle_fd = -1; -- cgit v1.2.3