Changeset 9b6d173 in rtems


Ignore:
Timestamp:
Jun 29, 2000, 4:05:15 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ef99210e
Parents:
1c2388c6
Message:

Patch from Chris Johns <cjohns@…> to make sure the
ttyHead back link is set.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/termios.c

    r1c2388c6 r9b6d173  
    189189                        return RTEMS_NO_MEMORY;
    190190                }
     191                if (rtems_termios_ttyHead)
     192                        rtems_termios_ttyHead->back = tty;
    191193                tty->forw = rtems_termios_ttyHead;
    192194                rtems_termios_ttyHead = tty;
    193195                if (rtems_termios_ttyTail == NULL)
    194196                        rtems_termios_ttyTail = tty;
    195 
    196197                tty->minor = minor;
    197198                tty->major = major;
  • c/src/lib/libc/termios.c

    r1c2388c6 r9b6d173  
    189189                        return RTEMS_NO_MEMORY;
    190190                }
     191                if (rtems_termios_ttyHead)
     192                        rtems_termios_ttyHead->back = tty;
    191193                tty->forw = rtems_termios_ttyHead;
    192194                rtems_termios_ttyHead = tty;
    193195                if (rtems_termios_ttyTail == NULL)
    194196                        rtems_termios_ttyTail = tty;
    195 
    196197                tty->minor = minor;
    197198                tty->major = major;
  • cpukit/libcsupport/src/termios.c

    r1c2388c6 r9b6d173  
    189189                        return RTEMS_NO_MEMORY;
    190190                }
     191                if (rtems_termios_ttyHead)
     192                        rtems_termios_ttyHead->back = tty;
    191193                tty->forw = rtems_termios_ttyHead;
    192194                rtems_termios_ttyHead = tty;
    193195                if (rtems_termios_ttyTail == NULL)
    194196                        rtems_termios_ttyTail = tty;
    195 
    196197                tty->minor = minor;
    197198                tty->major = major;
Note: See TracChangeset for help on using the changeset viewer.