lbalance: Switch to tlist2 lbalance uses the tlist module. tlist causes compile warnings on clang if you're not careful, because it can put 0 length arrays in the middle of structures. tlist2 doesn't have the problem, and also has a slightly cleaner interface. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
lbalance: fix unused var warning. /home/rusty/devel/cvs/ccan/ccan/lbalance/lbalance.c:Compiling object files gave warnings: /home/rusty/devel/cvs/ccan/ccan/lbalance/lbalance.c: In function ‘best_target’: /home/rusty/devel/cvs/ccan/ccan/lbalance/lbalance.c:245:18: warning: variable ‘best’ set but not used [-Wunused-but-set-variable] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tlist: remove type arg from tlist_top(), tlist_tail() With the type canary, it's unnecessary. Though the implementation is a bit more awkward since they longer map directly through to list_top/tail.
various: add LICENSE comments.
lbalance: new module for load balancing