[Git][NTPsec/ntpsec][master] Fix 'depracated' typo. LDISC_ACTS -> LDISC_MODEM.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Feb 3 21:03:09 UTC 2019


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
08203c27 by Eric S. Raymond at 2019-02-03T21:02:22Z
Fix 'depracated' typo.  LDISC_ACTS -> LDISC_MODEM.

- - - - -


2 changed files:

- include/ntp_tty.h
- ntpd/refclock_modem.c


Changes:

=====================================
include/ntp_tty.h
=====================================
@@ -17,18 +17,18 @@
 #endif
 
 /*
- * Line discipline flags.  The depredated ones required line discipline
+ * Line discipline flags.  The deprecated ones required line discipline
  * or streams modules to be installed/loaded in the kernel and are now
  * ignored.  Leave the LDISC_CLK and other deprecated symbols defined
  * until 2013 or 2014 to avoid complicating the use of newer drivers on
  * older ntpd, which is often as easy as dropping in the refclock *.c.
  */
 #define LDISC_STD	0x000	/* standard */
-#define LDISC_CLK	0x001	/* depredated tty_clk \n */
-#define LDISC_CLKPPS	0x002	/* depredated tty_clk \377 */
-#define LDISC_ACTS	0x004	/* depredated tty_clk #* */
-#define LDISC_CHU	0x008	/* depredated */
-#define LDISC_PPS	0x010	/* depredated */
+#define LDISC_CLK	0x001	/* deprecated tty_clk \n */
+#define LDISC_CLKPPS	0x002	/* deprecated tty_clk \377 */
+#define LDISC_MODEM	0x004	/* deprecated tty_clk #* */
+#define LDISC_CHU	0x008	/* deprecated */
+#define LDISC_PPS	0x010	/* deprecated */
 #define LDISC_RAW	0x020	/* raw binary */
 #define	LDISC_REMOTE	0x080	/* remote mode */
 #define	LDISC_7O1	0x100	/* 7-bit, odd parity for Z3801A */


=====================================
ntpd/refclock_modem.c
=====================================
@@ -515,7 +515,7 @@ modem_timeout(
 		snprintf(device, sizeof(device), DEVICE, up->unit);
 		fd = refclock_open(peer->cfg.path ? peer->cfg.path : device,
 				   peer->cfg.baud ? peer->cfg.baud : SPEED232,
-				   LDISC_ACTS | LDISC_RAW | LDISC_REMOTE);
+				   LDISC_MODEM | LDISC_RAW | LDISC_REMOTE);
 		if (fd < 0) {
 			msyslog(LOG_ERR, "REFCLOCK: modem: open fails %m");
 			return;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/08203c27ead11fa2f4ad5098b6ea836836acc8b5

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/08203c27ead11fa2f4ad5098b6ea836836acc8b5
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190203/3f9aa8e6/attachment-0001.html>


More information about the vc mailing list