aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2002-07-11 20:01:36 +0000
committerRobert Drehmel <robert@FreeBSD.org>2002-07-11 20:01:36 +0000
commita89c0b2458938c0adefde998c0a5f0aa1bb82715 (patch)
tree187d1ac2e770449c5129f2399812fa4b80b3d5ad /usr.sbin
parent379e7b73a61521ba4bbc92de4d6509183a604395 (diff)
downloadsrc-a89c0b2458938c0adefde998c0a5f0aa1bb82715.tar.gz
src-a89c0b2458938c0adefde998c0a5f0aa1bb82715.zip
- Remove unnecessary inclusion of <utmp.h>.
- Cast a value to time_t before comparing it to another time_t to fix a warning.
Notes
Notes: svn path=/head/; revision=99807
Diffstat (limited to 'usr.sbin')
-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 fb5014b393a8..0713155a3f61 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;