summaryrefslogtreecommitdiff
path: root/src/mwindow.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-04-05 17:18:20 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-11-27 11:09:20 +0000
commita3e8b7cd3e49bdcffc9d9d5bda1d134a448932e2 (patch)
tree93d9ff7088c26286323318c95baa7dc1ba91c390 /src/mwindow.h
parent69fb897915fc56ba14c2a5e35fb55000732817b7 (diff)
downloadlibgit2-a3e8b7cd3e49bdcffc9d9d5bda1d134a448932e2.tar.gz
mwindow: use GIT_ASSERT
Diffstat (limited to 'src/mwindow.h')
-rw-r--r--src/mwindow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mwindow.h b/src/mwindow.h
index 7519fc36d..b379fba2d 100644
--- a/src/mwindow.h
+++ b/src/mwindow.h
@@ -40,8 +40,8 @@ typedef struct git_mwindow_ctl {
} git_mwindow_ctl;
int git_mwindow_contains(git_mwindow *win, off64_t offset);
-void git_mwindow_free_all(git_mwindow_file *mwf); /* locks */
-void git_mwindow_free_all_locked(git_mwindow_file *mwf); /* run under lock */
+int git_mwindow_free_all(git_mwindow_file *mwf); /* locks */
+int git_mwindow_free_all_locked(git_mwindow_file *mwf); /* run under lock */
unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, off64_t offset, size_t extra, unsigned int *left);
int git_mwindow_file_register(git_mwindow_file *mwf);
void git_mwindow_file_deregister(git_mwindow_file *mwf);
@@ -51,6 +51,6 @@ extern int git_mwindow_global_init(void);
struct git_pack_file; /* just declaration to avoid cyclical includes */
int git_mwindow_get_pack(struct git_pack_file **out, const char *path);
-void git_mwindow_put_pack(struct git_pack_file *pack);
+int git_mwindow_put_pack(struct git_pack_file *pack);
#endif