[rtems commit] termios: Make tty list static

Sebastian Huber sebh at rtems.org
Mon Jun 30 09:10:50 UTC 2014


Module:    rtems
Branch:    master
Commit:    f6b1e0630b80810852887de634c64b2a62961cd7
Changeset: http://git.rtems.org/rtems/commit/?id=f6b1e0630b80810852887de634c64b2a62961cd7

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jun 27 13:08:28 2014 +0200

termios: Make tty list static

---

 cpukit/libcsupport/src/termios.c           |    5 +++--
 cpukit/libcsupport/src/termiosinitialize.c |    2 --
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 23c649f..1159bca 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -76,14 +76,15 @@ struct  rtems_termios_linesw rtems_termios_linesw[MAXLDISC] =
 int  rtems_termios_nlinesw =
        sizeof (rtems_termios_linesw) / sizeof (rtems_termios_linesw[0]);
 
-extern struct rtems_termios_tty *rtems_termios_ttyHead;
-extern struct rtems_termios_tty *rtems_termios_ttyTail;
 extern rtems_id rtems_termios_ttyMutex;
 
 static size_t rtems_termios_cbufsize = 256;
 static size_t rtems_termios_raw_input_size = 128;
 static size_t rtems_termios_raw_output_size = 64;
 
+static struct rtems_termios_tty *rtems_termios_ttyHead;
+static struct rtems_termios_tty *rtems_termios_ttyTail;
+
 static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument);
 static rtems_task rtems_termios_txdaemon(rtems_task_argument argument);
 /*
diff --git a/cpukit/libcsupport/src/termiosinitialize.c b/cpukit/libcsupport/src/termiosinitialize.c
index c7089df..46f40e3 100644
--- a/cpukit/libcsupport/src/termiosinitialize.c
+++ b/cpukit/libcsupport/src/termiosinitialize.c
@@ -32,8 +32,6 @@
 #include <termios.h>
 #include <unistd.h>
 
-struct rtems_termios_tty *rtems_termios_ttyHead;
-struct rtems_termios_tty *rtems_termios_ttyTail;
 rtems_id rtems_termios_ttyMutex;
 
 void



More information about the vc mailing list