From 3cc420bac0561780f4b4cc3b4183d7139cd3396c Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Fri, 1 Aug 2014 19:43:37 +0200 Subject: [PATCH] dhclient - Don't abandon time_t precision for intervals. - Use (long long) and %lld when printing, rather than (int)and %d. Follows idiom used for 64-bit size_t and off_t. Taken-from: OpenBSD --- sbin/dhclient/dhclient.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index cbf926bf15..8748ef38a8 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.149 2012/08/18 18:14:41 krw Exp $ */ +/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.150 2012/08/21 00:29:32 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -661,9 +661,9 @@ bind_lease(void) /* Set timeout to start the renewal process. */ set_timeout(client->active->renewal, state_bound); - note("bound to %s -- renewal in %d seconds.", + note("bound to %s -- renewal in %lld seconds.", piaddr(client->active->address), - (int)(client->active->renewal - cur_time)); + (long long)(client->active->renewal - cur_time)); client->state = S_BOUND; reinitialize_interface(); go_daemon(); @@ -979,9 +979,9 @@ state_panic(void) if (cur_time < client->active->renewal) { client->state = S_BOUND; - note("bound: renewal in %d seconds.", - (int)(client->active->renewal - - cur_time)); + note("bound: renewal in %lld seconds.", + (long long)(client->active->renewal + - cur_time)); set_timeout(client->active->renewal, state_bound); } else { -- 2.41.0