]> git.ozlabs.org Git - ccan/commitdiff
timer: make timer_del() idempotent, add timer_init().
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Oct 2014 05:40:21 +0000 (16:10 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 30 Oct 2014 22:52:11 +0000 (09:22 +1030)
This catches duplicate timer_add() calls, as well as meaning we don't
need to track if the timer is active before calling timer_del().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found