From 558f7c8edd6c5179d1d009daae73fb8b3f457546 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 21 Aug 2012 00:29:33 +0000 Subject: 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. Suggested by deraadt@ --- sbin/dhclient/dhclient.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sbin/dhclient') diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 82c464fb95f..143a44db134 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.149 2012/08/18 18:14:41 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.150 2012/08/21 00:29:32 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -678,9 +678,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(); @@ -992,9 +992,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 { -- cgit v1.2.3