tal: adding or removing a notifier/destructor can be const.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 3 Dec 2012 08:59:38 +0000 (19:29 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 3 Dec 2012 08:59:38 +0000 (19:29 +1030)
commit9a1441141e6fdb84e9c067b6d6808e65e0da3627
treec2924cb5042bc87410f19e3ffa98fe9274063db4
parentfce7c22f5ccfc10b0bd2bad8cc7553d113e1cde2
tal: adding or removing a notifier/destructor can be const.

You don't need write access to the context to attach a destructor;
it's meta.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/tal.h