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:
Rusty Russell 2016-11-09 18:56:38 +10:30
parent 9708c7a019
commit c2d71497ff
3 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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 */