Rework tick_msg() to make messages displayed during startup more
authorkrw <krw@openbsd.org>
Mon, 15 Feb 2021 14:20:11 +0000 (14:20 +0000)
committerkrw <krw@openbsd.org>
Mon, 15 Feb 2021 14:20:11 +0000 (14:20 +0000)
commit10179ebc291f2f1d000f78042ab5a7e617a51712
tree39a510f38502d375973e6a6d2b79bbb0f6d6f3c7
parent38b0cdf0d64571361d64f8b2c55a49862c9eaa5d
Rework tick_msg() to make messages displayed during startup more
reliable and consistant.

Eliminate unused time_t parameter since we only tick during the first
link_timeout seconds. Replace it with 'action' parameter to clearly
indicated what tick_msg() is supposed to do.

Fix issuance of '\n' before log_debug() messages. Properly
reinitialize static variables.

Use more precise 'timespec' timers, hewing to idiom suggested by
cheloha@.
sbin/dhclient/dhclient.c