From: Harlan Stenn Date: Wed, 23 Jun 1999 06:04:42 +0000 (-0000) Subject: ChangeLog, refclock_irig.c, ntptime.c: X-Git-Tag: NTP_4_0_94~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3386e69e2cd4ca9732e7428ab71e8155ee0e6dbe;p=thirdparty%2Fntp.git ChangeLog, refclock_irig.c, ntptime.c: * ntpd/refclock_irig.c (irig_debug): NetBSD patches From: Frederick Bruckman * util/ntptime.c (main): ntx.freq bugfix (-f option) From: Frederick Bruckman bk: 377078fauHOptXTC3Psm7xNQBPykGA --- diff --git a/ChangeLog b/ChangeLog index 06c89bbd67..55eb12a29d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-06-23 Harlan Stenn + + * ntpd/refclock_irig.c (irig_debug): NetBSD patches + From: Frederick Bruckman + + * util/ntptime.c (main): ntx.freq bugfix (-f option) + From: Frederick Bruckman + 1999-06-22 Harlan Stenn * configure.in: Fix typo with DECL_H_ERRNO test diff --git a/ntpd/refclock_irig.c b/ntpd/refclock_irig.c index 21403cbc5e..d8b92e8fd9 100644 --- a/ntpd/refclock_irig.c +++ b/ntpd/refclock_irig.c @@ -17,6 +17,9 @@ #ifdef HAVE_SUN_AUDIOIO_H #include #endif /* HAVE_SUN_AUDIOIO_H */ +#ifdef HAVE_SYS_IOCTL_H +#include +#endif /* HAVE_SYS_IOCTL_H */ #include "ntpd.h" #include "ntp_io.h" @@ -1067,8 +1070,13 @@ irig_debug( info.record.samples, info.record.eof, info.record.pause, info.record.error, info.record.waiting, info.record.balance); +#ifdef __NetBSD__ + printf("irig: monitor %d, blocksize %d, hiwat %d, lowat %d, mode %d\n", + info.monitor_gain, info.blocksize, info.hiwat, info.lowat, info.mode); +#else /* __NetBSD__ */ printf("irig: monitor %d, muted %d\n", info.monitor_gain, info.output_muted); +#endif /* __NetBSD__ */ } #endif /* DEBUG */ diff --git a/util/ntptime.c b/util/ntptime.c index cf7baec64a..aa964955d2 100644 --- a/util/ntptime.c +++ b/util/ntptime.c @@ -104,7 +104,7 @@ main( break; case 'f': ntx.modes |= MOD_FREQUENCY; - ntx.freq = (int)(atof(ntp_optarg) / SCALE_FREQ); + ntx.freq = (long)(atof(ntp_optarg) * SCALE_FREQ); break; case 'm': ntx.modes |= MOD_MAXERROR;