- Remove unnecessary inclusion of <utmp.h>.

- Cast a value to time_t before comparing it to another
   time_t to fix a warning.
This commit is contained in:
Robert Drehmel 2002-07-11 20:01:36 +00:00
parent 379e7b73a6
commit a89c0b2458
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99807

View File

@ -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;