diff options
Diffstat (limited to 'contrib/ntp/ntpd/refclock_usno.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_usno.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/contrib/ntp/ntpd/refclock_usno.c b/contrib/ntp/ntpd/refclock_usno.c index cf404e7..30a1330 100644 --- a/contrib/ntp/ntpd/refclock_usno.c +++ b/contrib/ntp/ntpd/refclock_usno.c @@ -9,13 +9,6 @@ #if defined(REFCLOCK) && defined(CLOCK_USNO) -#include <stdio.h> -#include <ctype.h> -#include <sys/time.h> -#ifdef HAVE_SYS_IOCTL_H -# include <sys/ioctl.h> -#endif /* HAVE_SYS_IOCTL_H */ - #include "ntpd.h" #include "ntp_io.h" #include "ntp_unixtime.h" @@ -23,6 +16,12 @@ #include "ntp_stdlib.h" #include "ntp_control.h" +#include <stdio.h> +#include <ctype.h> +#ifdef HAVE_SYS_IOCTL_H +# include <sys/ioctl.h> +#endif /* HAVE_SYS_IOCTL_H */ + /* * This driver supports the Naval Observatory dialup at +1 202 653 0351. * It is a hacked-up version of the ACTS driver. @@ -438,7 +437,7 @@ usno_timeout( peer->nextdate = current_time + ANSWER; return; } - switch (peer->ttl) { + switch (peer->ttlmax) { /* * In manual mode the calling program is activated |