MINOR: wdt: move wd_timer to wdt.c
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 13:23:26 +0000 (15:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commitb474f43816a9322cb33ec4ab4929683d2f042547
tree4832c854e5e2e57e41ef66fc1de392258c07300b
parent2169498941254eef0589d7c078f9955959d4baf5
MINOR: wdt: move wd_timer to wdt.c

The watchdog timer had no more reason for being shared with the struct
thread_info since the watchdog is the only user now. Let's remove it
from the struct and move it to a static array in wdt.c. This removes
some ifdefs and the need for the ugly mapping to empty_t that might be
subject to a cast to a long when compared to TIMER_INVALID. Now timer_t
is not known outside of wdt.c and clock.c anymore.
include/haproxy/compat.h
include/haproxy/tinfo-t.h
src/wdt.c