From a10ce4aa5f45c9b57b180ca86da37f2d23f179c9 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Fri, 12 Jul 2002 18:50:34 +0000 Subject: Fix jjy driver. This patch fixes an invalid command to the C-DEX JST2000. Submitted by: nork Reviewed by: Harlan Stenn --- net/ntp-devel/Makefile | 1 + net/ntp-devel/files/patch-ntpd::refclock_jjy.c | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 net/ntp-devel/files/patch-ntpd::refclock_jjy.c (limited to 'net/ntp-devel') diff --git a/net/ntp-devel/Makefile b/net/ntp-devel/Makefile index ffbe2d0e4262..e90a532fceda 100644 --- a/net/ntp-devel/Makefile +++ b/net/ntp-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= ntp PORTVERSION= 4.1.72 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \ http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ diff --git a/net/ntp-devel/files/patch-ntpd::refclock_jjy.c b/net/ntp-devel/files/patch-ntpd::refclock_jjy.c new file mode 100644 index 000000000000..b11e8c103a31 --- /dev/null +++ b/net/ntp-devel/files/patch-ntpd::refclock_jjy.c @@ -0,0 +1,11 @@ +--- ntpd/refclock_jjy.c.orig Tue Dec 4 23:22:52 2001 ++++ ntpd/refclock_jjy.c Fri Jul 12 11:35:43 2002 +@@ -704,7 +704,7 @@ + * Send "1J" command + */ + +- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) { ++ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) { + refclock_report ( peer, CEVNT_FAULT ) ; + } + -- cgit v1.2.3