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
This commit is contained in:
Tom Rhodes
2005-12-24 22:22:17 +00:00
parent aefc1eb332
commit 09c00166e4
5 changed files with 16 additions and 11 deletions
+3 -2
View File
@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$");
#include <paths.h>
#include <syslog.h>
#include <assert.h>
#include <inttypes.h>
#ifdef NO_SETSID
# include <fcntl.h> /* 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);