From 7635a1188a963f2fd7136a957ab9ab65baeff866 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 17 Oct 2012 14:06:32 -0700 Subject: [PATCH] Fix example compilation --- examples/network/fetch.c | 2 +- examples/network/index-pack.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 6c342be96..f7b2fd9de 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -34,7 +34,7 @@ static void *download(void *ptr) // Download the packfile and index it. This function updates the // amount of received data and the indexer stats which lets you // inform the user about progress. - if (git_remote_download(data->remote, data->bytes) < 0) { + if (git_remote_download(data->remote, data->bytes, NULL, NULL) < 0) { data->ret = -1; goto exit; } diff --git a/examples/network/index-pack.c b/examples/network/index-pack.c index 85aac4aff..69338b37f 100644 --- a/examples/network/index-pack.c +++ b/examples/network/index-pack.c @@ -33,7 +33,7 @@ int index_pack(git_repository *repo, int argc, char **argv) return EXIT_FAILURE; } - if (git_indexer_stream_new(&idx, ".") < 0) { + if (git_indexer_stream_new(&idx, ".", NULL, NULL) < 0) { puts("bad idx"); return -1; }