Skip to content

Commit

Permalink
Fix a typo in clock_gettime error path print that I somehow overlooked.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklata committed Feb 24, 2017
1 parent 7f08d4b commit a39f1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit a39f1da

Please sign in to comment.