diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-27 13:47:34 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-22 22:30:35 +0000 |
| commit | f673e232afe22eb865cdc915e55a2df6493f0fbb (patch) | |
| tree | e79e3e6fb1e1d78367679aea75e66c8141b4daa8 /src/zstream.c | |
| parent | 647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff) | |
| download | libgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz | |
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related
functions.
Diffstat (limited to 'src/zstream.c')
| -rw-r--r-- | src/zstream.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zstream.c b/src/zstream.c index affa55653..fc8bfb868 100644 --- a/src/zstream.c +++ b/src/zstream.c @@ -22,13 +22,13 @@ GIT_INLINE(int) zstream_seterr(git_zstream *zs) case Z_BUF_ERROR: /* not fatal; we retry with a larger buffer */ return 0; case Z_MEM_ERROR: - giterr_set_oom(); + git_error_set_oom(); break; default: if (zs->z.msg) - giterr_set_str(GITERR_ZLIB, zs->z.msg); + git_error_set_str(GIT_ERROR_ZLIB, zs->z.msg); else - giterr_set(GITERR_ZLIB, "unknown compression error"); + git_error_set(GIT_ERROR_ZLIB, "unknown compression error"); } return -1; @@ -136,7 +136,7 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream) size_t out_remain = *out_len; if (zstream->in_len && zstream->zerr == Z_STREAM_END) { - giterr_set(GITERR_ZLIB, "zlib input had trailing garbage"); + git_error_set(GIT_ERROR_ZLIB, "zlib input had trailing garbage"); return -1; } |
