diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-08-21 00:29:33 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-08-21 00:29:33 +0000 |
commit | 558f7c8edd6c5179d1d009daae73fb8b3f457546 (patch) | |
tree | 58b1c2ab734a540fdec8e77c659013a8289e8a30 /sbin | |
parent | 499b2ee6b6828b5801ca570a7eaa091bc88e645c (diff) |
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@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <henning@openbsd.org> @@ -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 { |