diff options
author | roberto <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
commit | 40b8e415eb0f835a9dd7a473ddf134ec67877fd7 (patch) | |
tree | 3cfb63f1a112ee17469b17fc1593a88d004ddda6 /contrib/ntp/ntpd/refclock_jupiter.c | |
parent | a5a8dc6136fcee95f261a31609a25669038c3861 (diff) | |
download | FreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.zip FreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.tar.gz |
Virgin import of ntpd 4.1.0
Diffstat (limited to 'contrib/ntp/ntpd/refclock_jupiter.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_jupiter.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/ntp/ntpd/refclock_jupiter.c b/contrib/ntp/ntpd/refclock_jupiter.c index b337e0c..4d1d4c2 100644 --- a/contrib/ntp/ntpd/refclock_jupiter.c +++ b/contrib/ntp/ntpd/refclock_jupiter.c @@ -37,10 +37,6 @@ #if defined(REFCLOCK) && defined(CLOCK_JUPITER) && defined(PPS) -#include <stdio.h> -#include <ctype.h> -#include <sys/time.h> - #include "ntpd.h" #include "ntp_io.h" #include "ntp_refclock.h" @@ -48,6 +44,9 @@ #include "ntp_stdlib.h" #include "ntp_calendar.h" +#include <stdio.h> +#include <ctype.h> + #include "jupiter.h" #include <sys/ppsclock.h> @@ -681,7 +680,7 @@ jupiter_process(register struct peer *peer) */ for (i = 0; i < NSAMPLES; i++) off[i] = up->filter[i]; - qsort((char *)off, NSAMPLES, sizeof(l_fp), jupiter_cmpl_fp); + qsort((char *)off, (size_t)NSAMPLES, sizeof(l_fp), jupiter_cmpl_fp); /* * Reject the furthest from the median of NSAMPLES samples until |