[Git][NTPsec/ntpsec][master] Remove a historical relic.
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Jun 29 13:29:55 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
4e065481 by Eric S. Raymond at 2016-06-29T09:28:19-04:00
Remove a historical relic.
- - - - -
1 changed file:
- ntpd/ntp_refclock.c
Changes:
=====================================
ntpd/ntp_refclock.c
=====================================
--- a/ntpd/ntp_refclock.c
+++ b/ntpd/ntp_refclock.c
@@ -66,7 +66,6 @@ bool cal_enable; /* enable refclock calibrate */
*/
static int refclock_cmpl_fp (const void *, const void *);
static int refclock_sample (struct refclockproc *);
-static bool refclock_ioctl(int, u_int);
/*
@@ -760,10 +759,6 @@ refclock_open(
close(fd);
return -1;
}
- if (!refclock_ioctl(fd, lflags)) {
- close(fd);
- return -1;
- }
#ifdef O_NONBLOCK
/*
* We want to make sure there is no pending trash in the input
@@ -884,34 +879,6 @@ refclock_setup(
/*
- * refclock_ioctl - set serial port control functions
- *
- * This routine attempts to hide the internal, system-specific details
- * of serial ports. It can handle POSIX (termios), SYSV (termio) and BSD
- * (sgtty) interfaces with varying degrees of success. The routine sets
- * up optional features such as tty_clk. The routine returns true if
- * successful.
- */
-bool
-refclock_ioctl(
- int fd, /* file descriptor */
- u_int lflags /* line discipline flags */
- )
-{
- UNUSED_ARG(fd);
-#ifndef DEBUG
- UNUSED_ARG(lflags);
-#endif /* DEBUG */
- /*
- * simply return true if no UNIX line discipline is supported
- */
- DPRINTF(1, ("refclock_ioctl: fd %d flags 0x%x\n", fd, lflags));
-
- return true;
-}
-
-
-/*
* refclock_control - set and/or return clock values
*
* This routine is used mainly for debugging. It returns designated
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4e06548185ba89c9570ba98c137ca84b568d38a6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160629/28ce8da9/attachment.html>
More information about the vc
mailing list