[PATCH 1/6] pppd: Remove unused get_pty() function

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 26 08:30:43 UTC 2018


Update #3526.
---
 cpukit/pppd/pppd.h      |  1 -
 cpukit/pppd/sys-rtems.c | 14 --------------
 2 files changed, 15 deletions(-)

diff --git a/cpukit/pppd/pppd.h b/cpukit/pppd/pppd.h
index 98c49e8f20..d1408a16a6 100644
--- a/cpukit/pppd/pppd.h
+++ b/cpukit/pppd/pppd.h
@@ -365,7 +365,6 @@ void sys_cleanup(void);	/* Restore system state before exiting */
 int  sys_check_options(void); /* Check options specified */
 void sys_close(void);	/* Clean up in a child before execing */
 int  ppp_available(void);	/* Test whether ppp kernel support exists */
-int  get_pty(int *, int *, char *, int);	/* Get pty master/slave */
 int  open_ppp_loopback(void); /* Open loopback for demand-dialling */
 int  establish_ppp(int);	/* Turn serial port into a ppp interface */
 void restore_loop(void);	/* Transfer ppp unit back to loopback */
diff --git a/cpukit/pppd/sys-rtems.c b/cpukit/pppd/sys-rtems.c
index 3fdca9ee0c..f973795b2c 100644
--- a/cpukit/pppd/sys-rtems.c
+++ b/cpukit/pppd/sys-rtems.c
@@ -443,20 +443,6 @@ setdtr(
     ioctl(fd, (on? TIOCMBIS: TIOCMBIC), &modembits);
 }
 
-/*
- * get_pty - get a pty master/slave pair and chown the slave side
- * to the uid given.  Assumes slave_name points to >= 12 bytes of space.
- */
-int
-get_pty(
-    int *master_fdp,
-    int *slave_fdp,
-    char *slave_name,
-    int uid)
-{
-    return 1;
-}
-
 
 /*
  * open_ppp_loopback - open the device we use for getting
-- 
2.16.4



More information about the devel mailing list