From 69d1bd9125b27b9d4b408534ca850ed5e509faa4 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Fri, 21 Dec 2012 15:30:46 -0800 Subject: [PATCH] Fix examples --- examples/network/fetch.c | 2 +- examples/network/ls-remote.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/network/fetch.c b/examples/network/fetch.c index f81c4fafe..2de58169d 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -76,7 +76,7 @@ int fetch(git_repository *repo, int argc, char **argv) // Figure out whether it's a named remote or a URL printf("Fetching %s for repo %p\n", argv[1], repo); if (git_remote_load(&remote, repo, argv[1]) < 0) { - if (git_remote_create_inmemory(&remote, repo, NULL, argv[1], NULL) < 0) + if (git_remote_create_inmemory(&remote, repo, argv[1], NULL) < 0) return -1; } diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c index d3e3ed053..a3eb01589 100644 --- a/examples/network/ls-remote.c +++ b/examples/network/ls-remote.c @@ -21,7 +21,7 @@ static int use_unnamed(git_repository *repo, const char *url) // Create an instance of a remote from the URL. The transport to use // is detected from the URL - error = git_remote_create_inmemory(&remote, repo, NULL, url, NULL); + error = git_remote_create_inmemory(&remote, repo, url, NULL); if (error < 0) goto cleanup;