Fix a typo in clock_gettime error path print that I somehow overlooked.
This commit is contained in:
parent
7f08d4b6fb
commit
a39f1dabfe
@ -493,7 +493,7 @@ static void quit_after_lease_handler(struct client_state_t cs[static 1])
|
||||
{
|
||||
struct timespec res;
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &res) < 0) {
|
||||
suicide("%s: (%) clock_gettime failed: %s",
|
||||
suicide("%s: (%s) clock_gettime failed: %s",
|
||||
client_config.interface, __func__, strerror(errno));
|
||||
}
|
||||
time_t init_ts = res.tv_sec;
|
||||
@ -503,7 +503,7 @@ static void quit_after_lease_handler(struct client_state_t cs[static 1])
|
||||
log_warning("%s: (%s) Failed to send ARP announcement: %s",
|
||||
client_config.interface, __func__, strerror(errno));
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &res) < 0) {
|
||||
suicide("%s: (%) clock_gettime failed: %s",
|
||||
suicide("%s: (%s) clock_gettime failed: %s",
|
||||
client_config.interface, __func__, strerror(errno));
|
||||
}
|
||||
if (res.tv_sec - init_ts > 60) break;
|
||||
|
Loading…
Reference in New Issue
Block a user