mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
tal: don't access low-level tal functions.
In several places we use low-level tal functions because we want the label to be something other than the default. ccan/tal is adding tal_*_label so replace them and shim it for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
5cf34d6618
commit
337075dc8c
@@ -39,7 +39,7 @@ bool deprecated_apis = true;
|
||||
/* Tal wrappers for opt. */
|
||||
static void *opt_allocfn(size_t size)
|
||||
{
|
||||
return tal_alloc_(NULL, size, false, false, TAL_LABEL("opt_allocfn", ""));
|
||||
return tal_arr_label(NULL, char, size, TAL_LABEL("opt_allocfn", ""));
|
||||
}
|
||||
|
||||
static void *tal_reallocfn(void *ptr, size_t size)
|
||||
|
||||
Reference in New Issue
Block a user