summaryrefslogtreecommitdiff
path: root/examples/network/clone.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-10 22:39:56 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:30:37 +0000
commitfcc7dcb1762bbc01ef0088b4cc866ca712622e3a (patch)
tree8da31905b787a336433e8c262d54db7b7f391403 /examples/network/clone.c
parent115a6c50c9c67bdf952304a3ed6a24673b42b815 (diff)
downloadlibgit2-fcc7dcb1762bbc01ef0088b4cc866ca712622e3a.tar.gz
errors: remove giterr usage in examples
Diffstat (limited to 'examples/network/clone.c')
-rw-r--r--examples/network/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c
index ce4b6aedf..bbcd2e848 100644
--- a/examples/network/clone.c
+++ b/examples/network/clone.c
@@ -104,7 +104,7 @@ int do_clone(git_repository *repo, int argc, char **argv)
error = git_clone(&cloned_repo, url, path, &clone_opts);
printf("\n");
if (error != 0) {
- const git_error *err = giterr_last();
+ const git_error *err = git_error_last();
if (err) printf("ERROR %d: %s\n", err->klass, err->message);
else printf("ERROR %d: no detailed info\n", error);
}