summaryrefslogtreecommitdiff
path: root/examples/network/git2.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/git2.c')
-rw-r--r--examples/network/git2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/git2.c b/examples/network/git2.c
index 1d3d27b1b..d0d0eb610 100644
--- a/examples/network/git2.c
+++ b/examples/network/git2.c
@@ -26,10 +26,10 @@ static int run_command(git_cb fn, git_repository *repo, struct args_info args)
/* Run the command. If something goes wrong, print the error message to stderr */
error = fn(repo, args.argc - args.pos, &args.argv[args.pos]);
if (error < 0) {
- if (giterr_last() == NULL)
+ if (git_error_last() == NULL)
fprintf(stderr, "Error without message");
else
- fprintf(stderr, "Bad news:\n %s\n", giterr_last()->message);
+ fprintf(stderr, "Bad news:\n %s\n", git_error_last()->message);
}
return !!error;