Signed-off-by: Michael Witten <mfwitten@xxxxxxxxx> --- builtin/fetch-pack.c | 2 +- builtin/receive-pack.c | 2 +- transport.c | 2 +- transport.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/transport.h b/transport.h index 88fa484..cf6fda4 100644 --- a/transport.h +++ b/transport.h @@ -166,7 +166,7 @@ int transport_refs_pushed(struct ref *ref); void transport_print_push_status(const char *dest, struct ref *refs, int verbose, int porcelain, int *nonfastforward); -typedef void (*transport_alt_refs_fn)(const struct ref *, void *); +typedef void (*transport_alt_refs_fn)(const struct ref *); extern int transport_alt_refs(struct alternate_object_database *, transport_alt_refs_fn); #endif diff --git a/transport.c b/transport.c index 53d37a9..165f69e 100644 --- a/transport.c +++ b/transport.c @@ -1217,7 +1217,7 @@ int transport_alt_refs(struct alternate_object_database *d, transport_alt_refs_f for (extra = transport_get_remote_refs(transport); extra; extra = extra->next) - ref_fn(extra, NULL); + ref_fn(extra); transport_disconnect(transport); free(other); return 0; diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index b3a9f74..d2e0111 100644 --- a/builtin/fetch-pack.c +++ b/builtin/fetch-pack.c @@ -219,7 +219,7 @@ static void send_request(int fd, struct strbuf *buf) safe_write(fd, buf->buf, buf->len); } -static void insert_one_alternate_ref(const struct ref *ref, void *unused) +static void insert_one_alternate_ref(const struct ref *ref) { rev_list_insert_ref(NULL, ref->old_sha1, 0, NULL); } diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index a761332..47a5aaa 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -731,7 +731,7 @@ static int delete_only(struct command *commands) return 1; } -static void add_one_alternate_ref(const struct ref *ref, void *unused) +static void add_one_alternate_ref(const struct ref *ref) { add_extra_ref(".have", ref->old_sha1, 0); } -- 1.7.4.18.g68fe8 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html