[Git][NTPsec/ntpsec][master] 3 commits: remove two unused externs: ntp_tty_setup(), ntp_tty_ioctl()

Gary E. Miller gitlab at mg.gitlab.com
Tue May 23 04:19:03 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
7fe2f1a9 by Gary E. Miller at 2017-05-22T21:09:56-07:00
remove two unused externs: ntp_tty_setup(), ntp_tty_ioctl()

- - - - -
c86f5a7f by Gary E. Miller at 2017-05-22T21:12:56-07:00
remove TTY define from header, put in the one place it is used.

- - - - -
b2cb75c2 by Gary E. Miller at 2017-05-22T21:18:25-07:00
remove unused trimble_scmds[]

- - - - -


3 changed files:

- include/ntp_tty.h
- include/trimble.h
- ntpd/ntp_refclock.c


Changes:

=====================================
include/ntp_tty.h
=====================================
--- a/include/ntp_tty.h
+++ b/include/ntp_tty.h
@@ -11,7 +11,6 @@
  */
 
 #include <termios.h>
-#define TTY	struct termios
 
 #if defined(HAVE_SYS_MODEM_H)
 #include <sys/modem.h>
@@ -34,8 +33,4 @@
 #define	LDISC_REMOTE	0x080	/* remote mode */
 #define	LDISC_7O1	0x100	/* 7-bit, odd parity for Z3801A */
 
-/* function prototypes for ntp_tty.c */
-extern	int	ntp_tty_setup(int, u_int, u_int);
-extern	int	ntp_tty_ioctl(int, u_int);
-
 #endif /* GUARD_NTP_TTY_H */


=====================================
include/trimble.h
=====================================
--- a/include/trimble.h
+++ b/include/trimble.h
@@ -103,7 +103,6 @@ typedef struct cmd_info
 } cmd_info_t;
 
 extern cmd_info_t trimble_rcmds[];
-extern cmd_info_t trimble_scmds[];
 
 extern cmd_info_t *trimble_convert (unsigned int cmd, cmd_info_t *tbl)
 			__attribute__((pure));


=====================================
ntpd/ntp_refclock.c
=====================================
--- a/ntpd/ntp_refclock.c
+++ b/ntpd/ntp_refclock.c
@@ -32,6 +32,8 @@
 			if (pp->coderecv == pp->codeproc) \
 				pp->codeproc = (pp->codeproc + 1) % MAXSTAGE;
 
+#define TTY	struct termios
+
 /*
  * Reference clock support is provided here by maintaining the fiction
  * that the clock is actually a peer.  As no packets are exchanged with



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/7e1593b15708891fac415a89676374c831adf03c...b2cb75c2802cef3902db83f2b2bac5ee11ae7a8f

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/7e1593b15708891fac415a89676374c831adf03c...b2cb75c2802cef3902db83f2b2bac5ee11ae7a8f
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/20170523/a756ebee/attachment.html>


More information about the vc mailing list