+1999-06-23 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * ntpd/refclock_irig.c (irig_debug): NetBSD patches
+ From: Frederick Bruckman <fb@enteract.com>
+
+ * util/ntptime.c (main): ntx.freq bugfix (-f option)
+ From: Frederick Bruckman <fb@enteract.com>
+
1999-06-22 Harlan Stenn <stenn@whimsy.udel.edu>
* configure.in: Fix typo with DECL_H_ERRNO test
#ifdef HAVE_SUN_AUDIOIO_H
#include <sun/audioio.h>
#endif /* HAVE_SUN_AUDIOIO_H */
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif /* HAVE_SYS_IOCTL_H */
#include "ntpd.h"
#include "ntp_io.h"
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 */
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;