1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix jjy driver. This patch fixes an invalid command to the

C-DEX JST2000.

Submitted by:	nork
Reviewed by:	Harlan Stenn <stenn@whimsy.udel.edu>
This commit is contained in:
Cy Schubert 2002-07-12 18:50:34 +00:00
parent 884a5f18eb
commit a10ce4aa5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62872
6 changed files with 36 additions and 0 deletions

View File

@ -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/

View File

@ -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 "<ENQ>1J<ETX>" command
*/
- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
+ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
refclock_report ( peer, CEVNT_FAULT ) ;
}

View File

@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.1.1a
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \

View File

@ -0,0 +1,11 @@
--- ntpd/refclock_jjy.c.orig Thu Jan 17 10:40:53 2002
+++ ntpd/refclock_jjy.c Fri Jul 12 11:37:44 2002
@@ -701,7 +701,7 @@
* Send "<ENQ>1J<ETX>" command
*/
- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
+ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
refclock_report ( peer, CEVNT_FAULT ) ;
}

View File

@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION= 4.1.1a
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \

View File

@ -0,0 +1,11 @@
--- ntpd/refclock_jjy.c.orig Thu Jan 17 10:40:53 2002
+++ ntpd/refclock_jjy.c Fri Jul 12 11:37:44 2002
@@ -701,7 +701,7 @@
* Send "<ENQ>1J<ETX>" command
*/
- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
+ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
refclock_report ( peer, CEVNT_FAULT ) ;
}