Skip to content

Commit

Permalink
pkg/tlsf: fix double pointer.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jcarrano committed Aug 16, 2019
1 parent 226ace7 commit ad4d883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/tlsf/contrib/include/tlsf-malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/tlsf/contrib/tlsf-malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad4d883

Please sign in to comment.