]> git.ozlabs.org Git - ccan/commit
tal: Make tal_resize() easier to use.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Nov 2012 05:17:30 +0000 (15:47 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Nov 2012 05:17:30 +0000 (15:47 +1030)
commit7ca46909f86e8bbad4e4bb19cac1a75d4ebf3df6
tree8f23760d901477fee3491c6c488eecfddc903df5
parent34c2962d00c4ec24f248bddfd42f2e79cc6b61ef
tal: Make tal_resize() easier to use.

Instead of trying to force people to use the return value, pass a pointer.
This makes it easier if you want to handle failure: no overwriting the old
pointer!

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