mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54: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
@@ -80,8 +80,7 @@ static bool make_callback(struct command *cmd,
|
||||
if (def->argsize && def->cb != (param_cb)json_tok_tok) {
|
||||
*(void **)def->arg
|
||||
= arg
|
||||
= tal_alloc_(cmd, def->argsize, false, false,
|
||||
"param");
|
||||
= tal_arr_label(cmd, char, def->argsize, "param");
|
||||
} else
|
||||
arg = def->arg;
|
||||
if (!def->cb(buffer, tok, arg)) {
|
||||
|
||||
Reference in New Issue
Block a user