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>

Elijah Newren committed Aug 15, 2018 at 10:54 UTC 17313107454de99c0ebdf1a981b1f6a2b17dc2f5
2 files changed +2 -2
alloc.c
+1 -1
@@ -36,7 +36,7 @@ struct alloc_state {
36 int slab_nr, slab_alloc;
37 };
38
39 -void *allocate_alloc_state(void)
39 +struct alloc_state *allocate_alloc_state(void)
40 {
41 return xcalloc(1, sizeof(struct alloc_state));
42 }
alloc.h
+1 -1
@@ -15,7 +15,7 @@ void *alloc_object_node(struct repository *r);
15 void alloc_report(struct repository *r);
16 unsigned int alloc_commit_index(struct repository *r);
17
18 -void *allocate_alloc_state(void);
18 +struct alloc_state *allocate_alloc_state(void);
19 void clear_alloc_state(struct alloc_state *s);
20
21 #endif