diff options
| author | Albert Meltzer <kitbellew@users.noreply.github.com> | 2014-05-18 07:54:41 -0700 |
|---|---|---|
| committer | Albert Meltzer <kitbellew@users.noreply.github.com> | 2014-05-19 17:37:29 -0700 |
| commit | 62e562f92b45b6a9b124452f7de6b9e86a179224 (patch) | |
| tree | 96562679577257795f9ab425faae8b953bf0c051 /src/pool.h | |
| parent | 588a43af543f9a00345a6e464a61c51aebad88da (diff) | |
| download | libgit2-62e562f92b45b6a9b124452f7de6b9e86a179224.tar.gz | |
Fix compiler warning (git_off_t cast to size_t).
Use size_t for page size, instead of long. Check result of sysconf.
Use size_t for page offset so no cast to size_t (second arg to p_mmap).
Use mod instead div/mult pair, so no cast to size_t is necessary.
Diffstat (limited to 'src/pool.h')
| -rw-r--r-- | src/pool.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pool.h b/src/pool.h index 5ac9b764f..b0007f315 100644 --- a/src/pool.h +++ b/src/pool.h @@ -143,8 +143,6 @@ extern uint32_t git_pool__full_pages(git_pool *pool); extern bool git_pool__ptr_in_pool(git_pool *pool, void *ptr); -extern uint32_t git_pool__system_page_size(void); - extern uint32_t git_pool__suggest_items_per_page(uint32_t item_size); #endif |
