From 412f766852e2da36b4f178232cadb20dda832f61 Mon Sep 17 00:00:00 2001 From: trhodes Date: Sat, 24 Dec 2005 22:22:17 +0000 Subject: Make tv_sec a time_t on all platforms but alpha. Brings us more in line with POSIX. This also makes the struct correct we ever implement an i386-time64 architecture. Not that we need too. Reviewed by: imp, brooks Approved by: njl (acpica), des (no objects, touches procfs) Tested with: make universe --- libexec/bootpd/bootpd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec') diff --git a/libexec/bootpd/bootpd.c b/libexec/bootpd/bootpd.c index 239b267..b0a49b5 100644 --- a/libexec/bootpd/bootpd.c +++ b/libexec/bootpd/bootpd.c @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #ifdef NO_SETSID # include /* for O_RDONLY, etc */ @@ -535,8 +536,8 @@ main(argc, argv) } if (!FD_ISSET(s, &readfds)) { if (debug > 1) - report(LOG_INFO, "exiting after %ld minutes of inactivity", - actualtimeout.tv_sec / 60); + report(LOG_INFO, "exiting after %jd minutes of inactivity", + (intmax_t)actualtimeout.tv_sec / 60); exit(0); } ra_len = sizeof(recv_addr); -- cgit v1.1