summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-07-11 20:01:36 +0000
committerrobert <robert@FreeBSD.org>2002-07-11 20:01:36 +0000
commitc0716890f84852e6220fc4b539fb809714e12c2a (patch)
tree187d1ac2e770449c5129f2399812fa4b80b3d5ad /usr.sbin/timed
parentdb007fe41c5c316de1e6bcd74d3263682e911270 (diff)
downloadFreeBSD-src-c0716890f84852e6220fc4b539fb809714e12c2a.zip
FreeBSD-src-c0716890f84852e6220fc4b539fb809714e12c2a.tar.gz
- Remove unnecessary inclusion of <utmp.h>.
- Cast a value to time_t before comparing it to another time_t to fix a warning.
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r--usr.sbin/timed/timed/master.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/timed/timed/master.c b/usr.sbin/timed/timed/master.c
index fb5014b..0713155 100644
--- a/usr.sbin/timed/timed/master.c
+++ b/usr.sbin/timed/timed/master.c
@@ -44,7 +44,6 @@ static const char rcsid[] =
#include <sys/types.h>
#include <sys/times.h>
#include <setjmp.h>
-#include <utmp.h>
#include "pathnames.h"
extern int measure_delta;
@@ -514,7 +513,7 @@ prthp(delta)
return;
this_time = times(&tm);
- if (this_time + delta < next_time)
+ if ((time_t)(this_time + delta) < next_time)
return;
next_time = this_time + CLK_TCK;
OpenPOWER on IntegriCloud