Fix a typo in clock_gettime error path print that I somehow overlooked.

This commit is contained in:
Nicholas J. Kain 2017-02-24 08:39:27 -05:00
parent 7f08d4b6fb
commit a39f1dabfe

View File

@ -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;