From ad4d883c4fceb29281c5e8bdf25fe3679449f0f2 Mon Sep 17 00:00:00 2001 From: Juan Carrano Date: Fri, 16 Aug 2019 19:17:32 +0200 Subject: [PATCH] pkg/tlsf: fix double pointer. A (void*) function was declared as (void**) because one of the void pointers was hidden behind a typedef. Because of the way a void* works, this has no consequences, but it is confusing. --- pkg/tlsf/contrib/include/tlsf-malloc.h | 2 +- pkg/tlsf/contrib/tlsf-malloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tlsf/contrib/include/tlsf-malloc.h b/pkg/tlsf/contrib/include/tlsf-malloc.h index e99523fc99..4aee8d60f8 100644 --- a/pkg/tlsf/contrib/include/tlsf-malloc.h +++ b/pkg/tlsf/contrib/include/tlsf-malloc.h @@ -86,7 +86,7 @@ int tlsf_add_global_pool(void *mem, size_t bytes); * * Use for debugging purposes only. */ -tlsf_t *_tlsf_get_global_control(void); +tlsf_t _tlsf_get_global_control(void); #ifdef __cplusplus diff --git a/pkg/tlsf/contrib/tlsf-malloc.c b/pkg/tlsf/contrib/tlsf-malloc.c index 117b560717..0d11a3506a 100644 --- a/pkg/tlsf/contrib/tlsf-malloc.c +++ b/pkg/tlsf/contrib/tlsf-malloc.c @@ -60,7 +60,7 @@ int tlsf_add_global_pool(void *mem, size_t bytes) } } -tlsf_t *_tlsf_get_global_control(void) +tlsf_t _tlsf_get_global_control(void) { return gheap; }