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/stream.h | |
| 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/stream.h')
| -rw-r--r-- | src/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h index d35477591..00220d50e 100644 --- a/src/stream.h +++ b/src/stream.h @@ -23,7 +23,7 @@ GIT_INLINE(int) git_stream_is_encrypted(git_stream *st) GIT_INLINE(int) git_stream_certificate(git_cert **out, git_stream *st) { if (!st->encrypted) { - giterr_set(GITERR_INVALID, "an unencrypted stream does not have a certificate"); + git_error_set(GIT_ERROR_INVALID, "an unencrypted stream does not have a certificate"); return -1; } @@ -38,7 +38,7 @@ GIT_INLINE(int) git_stream_supports_proxy(git_stream *st) GIT_INLINE(int) git_stream_set_proxy(git_stream *st, const git_proxy_options *proxy_opts) { if (!st->proxy_support) { - giterr_set(GITERR_INVALID, "proxy not supported on this stream"); + git_error_set(GIT_ERROR_INVALID, "proxy not supported on this stream"); return -1; } |
