diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-05-23 10:15:37 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-05-23 10:15:37 +0100 |
| commit | abfdb8a6d252a4834df9234ad338c97f1a4f97f2 (patch) | |
| tree | 7ed5176d477fcc83f427fd09d92507933727a8b9 /src/pool.h | |
| parent | e4bdba5647d30a1cb0f5952bb857301e453a1ab1 (diff) | |
| download | libgit2-abfdb8a6d252a4834df9234ad338c97f1a4f97f2.tar.gz | |
git_pool_init: return an int
Let `git_pool_init` return an int so that it could fail.
Diffstat (limited to 'src/pool.h')
| -rw-r--r-- | src/pool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pool.h b/src/pool.h index 23f68990f..969d0e7fe 100644 --- a/src/pool.h +++ b/src/pool.h @@ -81,7 +81,7 @@ typedef struct { * Of course, you can use this in other ways, but those are the * two most common patterns. */ -extern void git_pool_init(git_pool *pool, size_t item_size); +extern int git_pool_init(git_pool *pool, size_t item_size); /** * Free all items in pool |
