diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-18 17:53:26 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-24 15:12:56 -0600 |
| commit | 82050fa1bebbe3ea7627af0d5f8c5c3e3920493a (patch) | |
| tree | 0d73e8efc348d40196d8ff11945a75f8649ea7e5 /include | |
| parent | a3126a72d2ae034be9ab3cb06b25b314e7e9c639 (diff) | |
| download | libgit2-82050fa1bebbe3ea7627af0d5f8c5c3e3920493a.tar.gz | |
mempack functions: return an int
Stop returning a void for functions, future-proofing them to allow them
to fail.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/sys/mempack.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/sys/mempack.h b/include/git2/sys/mempack.h index 63fb38dc8..17da590a3 100644 --- a/include/git2/sys/mempack.h +++ b/include/git2/sys/mempack.h @@ -78,8 +78,9 @@ GIT_EXTERN(int) git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_ba * semantics to the Git repository. * * @param backend The mempack backend + * @return 0 on success; error code otherwise */ -GIT_EXTERN(void) git_mempack_reset(git_odb_backend *backend); +GIT_EXTERN(int) git_mempack_reset(git_odb_backend *backend); GIT_END_DECL |
