mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
opt, utils: new arg for wrappers due to low-level tal change.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
9708c7a019
commit
c2d71497ff
@ -23,7 +23,8 @@
|
||||
/* Tal wrappers for opt. */
|
||||
static void *opt_allocfn(size_t size)
|
||||
{
|
||||
return tal_alloc_(NULL, size, false, TAL_LABEL("opt_allocfn", ""));
|
||||
return tal_alloc_(NULL, size, false, false,
|
||||
TAL_LABEL("opt_allocfn", ""));
|
||||
}
|
||||
|
||||
static void *tal_reallocfn(void *ptr, size_t size)
|
||||
|
@ -376,7 +376,7 @@ static struct lightningd_state *lightningd_state(void)
|
||||
/* Tal wrappers for opt. */
|
||||
static void *opt_allocfn(size_t size)
|
||||
{
|
||||
return tal_alloc_(NULL, size, false, TAL_LABEL("opt_allocfn", ""));
|
||||
return tal_alloc_(NULL, size, false, false, TAL_LABEL("opt_allocfn", ""));
|
||||
}
|
||||
|
||||
static void *tal_reallocfn(void *ptr, size_t size)
|
||||
|
2
utils.h
2
utils.h
@ -11,7 +11,7 @@ char *tal_hexstr(const tal_t *ctx, const void *data, size_t len);
|
||||
u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len);
|
||||
|
||||
#define tal_tmpctx(ctx) \
|
||||
tal_alloc_((ctx), 0, false, \
|
||||
tal_alloc_((ctx), 0, false, false, \
|
||||
__FILE__ ":" stringify(__LINE__) ":tal_tmpctx")
|
||||
|
||||
#endif /* LIGHTNING_UTILS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user