diff options
author | Elijah Newren <newren@gmail.com> | 2018-08-15 10:54:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-15 11:52:09 -0700 |
commit | 17313107454de99c0ebdf1a981b1f6a2b17dc2f5 (patch) | |
tree | d0dd9691054c566862b26edcdd564aff99e215b0 /alloc.h | |
parent | ef3ca95475ce467ae883cc8175ed40e6f7d27800 (diff) | |
download | git-17313107454de99c0ebdf1a981b1f6a2b17dc2f5.tar.gz |
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.h')
-rw-r--r-- | alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ void *alloc_object_node(struct repository *r); void alloc_report(struct repository *r); unsigned int alloc_commit_index(struct repository *r); -void *allocate_alloc_state(void); +struct alloc_state *allocate_alloc_state(void); void clear_alloc_state(struct alloc_state *s); #endif |