Browse Source

opt, utils: new arg for wrappers due to low-level tal change.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
c2d71497ff
  1. 3
      daemon/lightning-cli.c
  2. 2
      daemon/lightningd.c
  3. 2
      utils.h

3
daemon/lightning-cli.c

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

2
daemon/lightningd.c

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

@ -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…
Cancel
Save