diff options
author | Robert Drehmel <robert@FreeBSD.org> | 2002-07-11 20:01:36 +0000 |
---|---|---|
committer | Robert Drehmel <robert@FreeBSD.org> | 2002-07-11 20:01:36 +0000 |
commit | a89c0b2458938c0adefde998c0a5f0aa1bb82715 (patch) | |
tree | 187d1ac2e770449c5129f2399812fa4b80b3d5ad /usr.sbin | |
parent | 379e7b73a61521ba4bbc92de4d6509183a604395 (diff) | |
download | src-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.c | 3 |
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; |