mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-18 03:57:26 +00:00
Fix example compilation
This commit is contained in:
parent
216863c48f
commit
7635a1188a
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user