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/mwindow.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/mwindow.c')
| -rw-r--r-- | src/mwindow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mwindow.c b/src/mwindow.c index 16508c190..ffbee7d14 100644 --- a/src/mwindow.c +++ b/src/mwindow.c @@ -58,7 +58,7 @@ int git_mwindow_get_pack(struct git_pack_file **out, const char *path) return error; if (git_mutex_lock(&git__mwindow_mutex) < 0) { - giterr_set(GITERR_OS, "failed to lock mwindow mutex"); + git_error_set(GIT_ERROR_OS, "failed to lock mwindow mutex"); return -1; } @@ -122,7 +122,7 @@ void git_mwindow_put_pack(struct git_pack_file *pack) void git_mwindow_free_all(git_mwindow_file *mwf) { if (git_mutex_lock(&git__mwindow_mutex)) { - giterr_set(GITERR_THREAD, "unable to lock mwindow mutex"); + git_error_set(GIT_ERROR_THREAD, "unable to lock mwindow mutex"); return; } @@ -229,7 +229,7 @@ static int git_mwindow_close_lru(git_mwindow_file *mwf) } if (!lru_w) { - giterr_set(GITERR_OS, "failed to close memory window; couldn't find LRU"); + git_error_set(GIT_ERROR_OS, "failed to close memory window; couldn't find LRU"); return -1; } @@ -324,7 +324,7 @@ unsigned char *git_mwindow_open( git_mwindow *w = *cursor; if (git_mutex_lock(&git__mwindow_mutex)) { - giterr_set(GITERR_THREAD, "unable to lock mwindow mutex"); + git_error_set(GIT_ERROR_THREAD, "unable to lock mwindow mutex"); return NULL; } @@ -376,7 +376,7 @@ int git_mwindow_file_register(git_mwindow_file *mwf) int ret; if (git_mutex_lock(&git__mwindow_mutex)) { - giterr_set(GITERR_THREAD, "unable to lock mwindow mutex"); + git_error_set(GIT_ERROR_THREAD, "unable to lock mwindow mutex"); return -1; } @@ -416,7 +416,7 @@ void git_mwindow_close(git_mwindow **window) git_mwindow *w = *window; if (w) { if (git_mutex_lock(&git__mwindow_mutex)) { - giterr_set(GITERR_THREAD, "unable to lock mwindow mutex"); + git_error_set(GIT_ERROR_THREAD, "unable to lock mwindow mutex"); return; } |
