summaryrefslogtreecommitdiff
path: root/mem-pool.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2020-08-15 17:37:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-18 19:16:08 (GMT)
commitf87bf28483ae6db32b3ac246ff7081d64a608327 (patch)
tree09833afe3837653e1a1663a21293e952a39bd39f /mem-pool.h
parent44c7e1a7e08c0863c4156869364cb5751a23784e (diff)
downloadgit-f87bf28483ae6db32b3ac246ff7081d64a608327.zip
git-f87bf28483ae6db32b3ac246ff7081d64a608327.tar.gz
git-f87bf28483ae6db32b3ac246ff7081d64a608327.tar.bz2
mem-pool: use consistent pool variable name
About half the function declarations in mem-pool.h used 'struct mem_pool *pool', while the other half used 'struct mem_pool *mem_pool'. Make the code a bit more consistent by just using 'pool' in preference to 'mem_pool' everywhere. No behavioral changes included; this is just a mechanical rename (though a line or two was rewrapped as well). Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mem-pool.h')
-rw-r--r--mem-pool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mem-pool.h b/mem-pool.h
index 870161a..fe7507f 100644
--- a/mem-pool.h
+++ b/mem-pool.h
@@ -29,7 +29,7 @@ void mem_pool_init(struct mem_pool *pool, size_t initial_size);
/*
* Discard all the memory the memory pool is responsible for.
*/
-void mem_pool_discard(struct mem_pool *mem_pool, int invalidate_memory);
+void mem_pool_discard(struct mem_pool *pool, int invalidate_memory);
/*
* Alloc memory from the mem_pool.
@@ -58,6 +58,6 @@ void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src);
* Check if a memory pointed at by 'mem' is part of the range of
* memory managed by the specified mem_pool.
*/
-int mem_pool_contains(struct mem_pool *mem_pool, void *mem);
+int mem_pool_contains(struct mem_pool *pool, void *mem);
#endif