intmap: clean up iterators.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Jan 2017 02:55:14 +0000 (13:25 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Jan 2017 02:55:14 +0000 (13:25 +1030)
commitb796c0318151ce34b56d2973f567335fbf20aae7
tree3497883e7c4985f530a27245bbf72896428b92f9
parentd9e93014a999102aa1cc9979e041cd58e6aca724
intmap: clean up iterators.

By returning the value, we have a nice sentinal and we save a second lookup
if they want it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/intmap/intmap.c
ccan/intmap/intmap.h
ccan/intmap/test/run-order-smallsize.c
ccan/intmap/test/run-order.c
ccan/intmap/test/run-signed-int.c