diff options
| author | Ollivier Robert <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
|---|---|---|
| committer | Ollivier Robert <roberto@FreeBSD.org> | 2001-08-29 14:35:15 +0000 |
| commit | 224ba2bd37e182b64f7d78defef8a6cacaad3415 (patch) | |
| tree | 3cfb63f1a112ee17469b17fc1593a88d004ddda6 /contrib/ntp/ntpd/refclock_irig.c | |
| parent | 1c80946020d06ca926154926c7c890d211708395 (diff) | |
Notes
Diffstat (limited to 'contrib/ntp/ntpd/refclock_irig.c')
| -rw-r--r-- | contrib/ntp/ntpd/refclock_irig.c | 15 |
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 |
