diff options
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; } |
