mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 20:53:06 +08:00
* ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
not an initializer, to copy the structure.
This commit is contained in:
@ -221,10 +221,11 @@ hardwire_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
|
|||||||
serial_ttystate new_ttystate;
|
serial_ttystate new_ttystate;
|
||||||
serial_ttystate old_ttystate;
|
serial_ttystate old_ttystate;
|
||||||
{
|
{
|
||||||
struct hardwire_ttystate new_state =
|
struct hardwire_ttystate new_state;
|
||||||
*(struct hardwire_ttystate *)new_ttystate;
|
|
||||||
struct hardwire_ttystate *state = (struct hardwire_ttystate *) old_ttystate;
|
struct hardwire_ttystate *state = (struct hardwire_ttystate *) old_ttystate;
|
||||||
|
|
||||||
|
new_state = *(struct hardwire_ttystate *)new_ttystate;
|
||||||
|
|
||||||
#ifdef HAVE_TERMIOS
|
#ifdef HAVE_TERMIOS
|
||||||
/* I'm not sure whether this is necessary; the manpage makes no mention
|
/* I'm not sure whether this is necessary; the manpage makes no mention
|
||||||
of discarding input when switching to/from ICANON. */
|
of discarding input when switching to/from ICANON. */
|
||||||
|
Reference in New Issue
Block a user