diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-22 22:52:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-22 22:52:06 +0000 |
| commit | 635693d3bc55770ec7a6640ba3f2f0ee434a6042 (patch) | |
| tree | 9156b0eae8ff19b7e2e0bb8eb76d38ce35baac5c /examples/network/git2.c | |
| parent | 6b2cd0ed599aec32444166b7ad5b0c9fdd88b498 (diff) | |
| parent | a27a4de6f8003961d38958893c6c637395c7cc04 (diff) | |
| download | libgit2-635693d3bc55770ec7a6640ba3f2f0ee434a6042.tar.gz | |
Merge pull request #4917 from libgit2/ethomson/giterr
Move `giterr` to `git_error`
Diffstat (limited to 'examples/network/git2.c')
| -rw-r--r-- | examples/network/git2.c | 4 |
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; |
