clarify parameter usage in tslf_create

This commit is contained in:
Philippe
2021-11-05 00:44:21 -07:00
committed by BOT
parent a7b9e7a8bd
commit 30bd908f97
2 changed files with 3 additions and 3 deletions

View File

@@ -784,7 +784,7 @@ void tlsf_remove_pool(tlsf_t tlsf, pool_t pool)
*/
tlsf_t tlsf_create(void* mem, size_t bytes)
tlsf_t tlsf_create(void* mem, size_t max_bytes)
{
#if _DEBUG
if (test_ffs_fls())
@@ -800,7 +800,7 @@ tlsf_t tlsf_create(void* mem, size_t bytes)
return 0;
}
control_construct(tlsf_cast(control_t*, mem), bytes);
control_construct(tlsf_cast(control_t*, mem), max_bytes);
return tlsf_cast(tlsf_t, mem);
}