Fix build on 64-bit platforms where time_t is 64 bit. Since where
talking about time related to leases, it should be OK to cast these to (int)s rather than using intmax_t. Submitted by: ru Pointy hat: brooks
This commit is contained in:
parent
b730879ffa
commit
9c13d9cd98
@ -724,7 +724,7 @@ bind_lease(struct interface_info *ip)
|
||||
|
||||
note("bound to %s -- renewal in %d seconds.",
|
||||
piaddr(ip->client->active->address),
|
||||
ip->client->active->renewal - cur_time);
|
||||
(int)(ip->client->active->renewal - cur_time));
|
||||
ip->client->state = S_BOUND;
|
||||
reinitialize_interfaces();
|
||||
go_daemon();
|
||||
@ -1145,7 +1145,8 @@ send_discover(void *ipp)
|
||||
|
||||
note("DHCPDISCOVER on %s to %s port %d interval %d",
|
||||
ip->name, inet_ntoa(sockaddr_broadcast.sin_addr),
|
||||
ntohs(sockaddr_broadcast.sin_port), ip->client->interval);
|
||||
ntohs(sockaddr_broadcast.sin_port),
|
||||
(int)ip->client->interval);
|
||||
|
||||
/* Send out a packet. */
|
||||
(void)send_packet(ip, &ip->client->packet, ip->client->packet_length,
|
||||
@ -1196,8 +1197,8 @@ state_panic(void *ipp)
|
||||
ip->client->active->renewal) {
|
||||
ip->client->state = S_BOUND;
|
||||
note("bound: renewal in %d seconds.",
|
||||
ip->client->active->renewal -
|
||||
cur_time);
|
||||
(int)(ip->client->active->renewal -
|
||||
cur_time));
|
||||
add_timeout(
|
||||
ip->client->active->renewal,
|
||||
state_bound, ip);
|
||||
|
Loading…
Reference in New Issue
Block a user