summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:05:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:05:30 +0000
commit5aac7bc83e811508d16cc5260b5d9d9d5b0a2b7e (patch)
treefa41fba04aad760b18205f211a26baf8aa7a5089 /c
parentPatch from Eric Valette <valette@crf.canon.fr> to make librdbg work (diff)
downloadrtems-5aac7bc83e811508d16cc5260b5d9d9d5b0a2b7e.tar.bz2
Patch from Chris Johns <cjohns@cybertec.com.au> to make sure the
ttyHead back link is set.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libc/termios.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libc/termios.c b/c/src/lib/libc/termios.c
index 7883e94b63..3dd122dca1 100644
--- a/c/src/lib/libc/termios.c
+++ b/c/src/lib/libc/termios.c
@@ -188,11 +188,12 @@ rtems_termios_open (
rtems_semaphore_release (rtems_termios_ttyMutex);
return RTEMS_NO_MEMORY;
}
+ if (rtems_termios_ttyHead)
+ rtems_termios_ttyHead->back = tty;
tty->forw = rtems_termios_ttyHead;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
-
tty->minor = minor;
tty->major = major;