Remove unused main() args in many modules. This makes us closer to compiling cleanly with -Wunused (as used by -Wextra). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable
cast: fix cast of void * when we don't have GCC features. I thought using sizeof() comparison to compare the types was clever, but it doesn't work on void pointers, as sizeof(void) is illegal.
cast: new limited cast package inspired by Jan Engelhardt's libhx.