aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/ntpd/refclock_irig.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/refclock_irig.c')
-rw-r--r--contrib/ntp/ntpd/refclock_irig.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/ntp/ntpd/refclock_irig.c b/contrib/ntp/ntpd/refclock_irig.c
index ab4b52506d6a..7efd57edeb17 100644
--- a/contrib/ntp/ntpd/refclock_irig.c
+++ b/contrib/ntp/ntpd/refclock_irig.c
@@ -7,19 +7,19 @@
#if defined(REFCLOCK) && defined(CLOCK_IRIG)
+#include "ntpd.h"
+#include "ntp_io.h"
+#include "ntp_refclock.h"
+#include "ntp_calendar.h"
+#include "ntp_stdlib.h"
+
#include <stdio.h>
#include <ctype.h>
-#include <sys/time.h>
#include <math.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif /* HAVE_SYS_IOCTL_H */
-#include "ntpd.h"
-#include "ntp_io.h"
-#include "ntp_refclock.h"
-#include "ntp_calendar.h"
-#include "ntp_stdlib.h"
#include "audio.h"
/*
@@ -140,6 +140,7 @@
/*
* Interface definitions
*/
+#define DEVICE_AUDIO "/dev/audio" /* audio device name */
#define PRECISION (-17) /* precision assumed (about 10 us) */
#define REFID "IRIG" /* reference ID */
#define DESCRIPTION "Generic IRIG Audio Driver" /* WRU */
@@ -310,7 +311,7 @@ irig_start(
/*
* Open audio device
*/
- fd = audio_init();
+ fd = audio_init(DEVICE_AUDIO);
if (fd < 0)
return (0);
#ifdef DEBUG