mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
@@ -23,7 +23,8 @@
|
|||||||
/* Tal wrappers for opt. */
|
/* Tal wrappers for opt. */
|
||||||
static void *opt_allocfn(size_t size)
|
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)
|
static void *tal_reallocfn(void *ptr, size_t size)
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ static struct lightningd_state *lightningd_state(void)
|
|||||||
/* Tal wrappers for opt. */
|
/* Tal wrappers for opt. */
|
||||||
static void *opt_allocfn(size_t size)
|
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)
|
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);
|
u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len);
|
||||||
|
|
||||||
#define tal_tmpctx(ctx) \
|
#define tal_tmpctx(ctx) \
|
||||||
tal_alloc_((ctx), 0, false, \
|
tal_alloc_((ctx), 0, false, false, \
|
||||||
__FILE__ ":" stringify(__LINE__) ":tal_tmpctx")
|
__FILE__ ":" stringify(__LINE__) ":tal_tmpctx")
|
||||||
|
|
||||||
#endif /* LIGHTNING_UTILS_H */
|
#endif /* LIGHTNING_UTILS_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user