summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2018-08-15 17:54:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-15 18:52:09 (GMT)
commit17313107454de99c0ebdf1a981b1f6a2b17dc2f5 (patch)
treed0dd9691054c566862b26edcdd564aff99e215b0 /alloc.c
parentef3ca95475ce467ae883cc8175ed40e6f7d27800 (diff)
downloadgit-17313107454de99c0ebdf1a981b1f6a2b17dc2f5.zip
git-17313107454de99c0ebdf1a981b1f6a2b17dc2f5.tar.gz
git-17313107454de99c0ebdf1a981b1f6a2b17dc2f5.tar.bz2
alloc: make allocate_alloc_state and clear_alloc_state more consistent
Since both functions are using the same data type, they should either both refer to it as void *, or both use the real type (struct alloc_state *). Opt for the latter. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index c2fc5d6..e7aa81b 100644
--- a/alloc.c
+++ b/alloc.c
@@ -36,7 +36,7 @@ struct alloc_state {
int slab_nr, slab_alloc;
};
-void *allocate_alloc_state(void)
+struct alloc_state *allocate_alloc_state(void)
{
return xcalloc(1, sizeof(struct alloc_state));
}