diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-25 21:35:58 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-25 21:35:58 +0200 |
commit | c19b1c0442b52e07f1c9f48b65ef0b3823eaa526 (patch) | |
tree | fe3b26bdc719e7a74083476007b1a2fc326f8ee3 /src/mwindow.h | |
parent | 966fb207021830819aad9fce098b4a63838def4d (diff) | |
download | libgit2-c19b1c0442b52e07f1c9f48b65ef0b3823eaa526.tar.gz |
pack: clean up error returns
Set a message when we fail to lock.
Also make the put function void, since it's called from free, which
cannot report errors. The only errors we can experience here are
internal state corruption, so we assert that we are trying to put a
pack which we have previously got.
Diffstat (limited to 'src/mwindow.h')
-rw-r--r-- | src/mwindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mwindow.h b/src/mwindow.h index 57fabae70..63418e458 100644 --- a/src/mwindow.h +++ b/src/mwindow.h @@ -48,6 +48,6 @@ void git_mwindow_files_free(void); struct git_pack_file; /* just declaration to avoid cyclical includes */ int git_mwindow_get_pack(struct git_pack_file **out, const char *path); -int git_mwindow_put_pack(struct git_pack_file *pack); +void git_mwindow_put_pack(struct git_pack_file *pack); #endif |