diff options
-rw-r--r-- | usr.sbin/dhcpd/memory.c | 6 | ||||
-rw-r--r-- | usr.sbin/dhcpd/sync.c | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/dhcpd/memory.c b/usr.sbin/dhcpd/memory.c index 2dd6fcd875d..f89943dd12d 100644 --- a/usr.sbin/dhcpd/memory.c +++ b/usr.sbin/dhcpd/memory.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memory.c,v 1.20 2010/03/27 14:11:38 krw Exp $ */ +/* $OpenBSD: memory.c,v 1.21 2013/10/18 13:44:35 krw Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. @@ -639,8 +639,8 @@ abandon_lease(struct lease *lease, char *message) lease->flags |= ABANDONED_LEASE; lt = *lease; lt.ends = cur_time + abtime; - warning("Abandoning IP address %s for %d seconds: %s", - piaddr(lease->ip_addr), abtime, message); + warning("Abandoning IP address %s for %lld seconds: %s", + piaddr(lease->ip_addr), (long long)abtime, message); lt.hardware_addr.htype = 0; lt.hardware_addr.hlen = 0; lt.uid = NULL; 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); |