summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-05-23 10:15:37 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-05-23 10:15:37 +0100
commitabfdb8a6d252a4834df9234ad338c97f1a4f97f2 (patch)
tree7ed5176d477fcc83f427fd09d92507933727a8b9 /src/pool.h
parente4bdba5647d30a1cb0f5952bb857301e453a1ab1 (diff)
downloadlibgit2-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.h2
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