summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/sync.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 13:44:36 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 13:44:36 +0000
commit0e724c882678c61297f6e6523cd47110e62f5597 (patch)
tree648facb1526e90ef584c7a15c923c3883c22339a /usr.sbin/dhcpd/sync.c
parentf32ebaaae8913bf6b697f71cdcc02b7f2a119cdc (diff)
%d -> %lld, add (long long) cast to time_t variables. Make guenther
and gcc happier. Found while looking at something else for dlg@.
Diffstat (limited to 'usr.sbin/dhcpd/sync.c')
-rw-r--r--usr.sbin/dhcpd/sync.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/sync.c b/usr.sbin/dhcpd/sync.c
index e436d848e7c..f8dde4e0ddb 100644
--- a/usr.sbin/dhcpd/sync.c
+++ b/usr.sbin/dhcpd/sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sync.c,v 1.13 2013/04/22 15:02:42 krw Exp $ */
+/* $OpenBSD: sync.c,v 1.14 2013/10/18 13:44:35 krw Exp $ */
/*
* Copyright (c) 2008 Bob Beck <beck@openbsd.org>
@@ -315,11 +315,12 @@ sync_recv(void)
memcpy(&lp->hardware_addr, &lv->lv_hardware_addr,
sizeof(lp->hardware_addr));
note("DHCP_SYNC_LEASE from %s for hw %s -> ip %s, "
- "start %d, end %d",
+ "start %lld, end %lld",
inet_ntoa(addr.sin_addr),
print_hw_addr(lp->hardware_addr.htype,
lp->hardware_addr.hlen, lp->hardware_addr.haddr),
- piaddr(lp->ip_addr), lp->starts, lp->ends);
+ piaddr(lp->ip_addr),
+ (long long)lp->starts, (long long)lp->ends);
/* now whack the lease in there */
if (lease == NULL) {
enter_lease(lp);