diff options
Diffstat (limited to 'contrib/ntp/ntpd/refclock_msfees.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_msfees.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/ntp/ntpd/refclock_msfees.c b/contrib/ntp/ntpd/refclock_msfees.c index db6c6b1..b1aaa56 100644 --- a/contrib/ntp/ntpd/refclock_msfees.c +++ b/contrib/ntp/ntpd/refclock_msfees.c @@ -11,16 +11,13 @@ * (hence probably didn't work). Still in RCS file at cl.cam.ac.uk */ -#include <ctype.h> -#ifdef HAVE_SYS_TIME_H -# include <sys/time.h> -#endif - #include "ntpd.h" #include "ntp_io.h" #include "ntp_refclock.h" #include "ntp_unixtime.h" #include "ntp_calendar.h" + +#include <ctype.h> #if defined(HAVE_BSD_TTYS) #include <sgtty.h> #endif /* HAVE_BSD_TTYS */ @@ -1287,7 +1284,7 @@ ees_process( if (ees->dump_vals) dump_buf(coffs, 0, samples, "Raw data is:"); /* Sort the offsets, trim off the extremes, then choose one. */ - qsort((char *) coffs, (u_int)samples, sizeof(l_fp), offcompare); + qsort((char *) coffs, (size_t)samples, sizeof(l_fp), offcompare); noff = samples; i = 0; |