summaryrefslogtreecommitdiff
path: root/examples/network
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-01-02 12:44:47 -0800
committerBen Straub <bs@github.com>2013-01-02 12:44:47 -0800
commit0642c1431eccdf7aef496c0dc6d64805c513db53 (patch)
treec9471e1cc2f0540b0c4b0621d48fa323e683b008 /examples/network
parent3de2256708a206bc01bca0fe418b8448d1b41855 (diff)
downloadlibgit2-0642c1431eccdf7aef496c0dc6d64805c513db53.tar.gz
Move `url` to last place in parameter list
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/fetch.c2
-rw-r--r--examples/network/ls-remote.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c
index 2de58169d..437b137d3 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, argv[1], NULL) < 0)
+ if (git_remote_create_inmemory(&remote, repo, NULL, argv[1]) < 0)
return -1;
}
diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c
index a3eb01589..737eeacd3 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, url, NULL);
+ error = git_remote_create_inmemory(&remote, repo, NULL, url);
if (error < 0)
goto cleanup;