diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-02 02:50:43 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-02 02:50:43 +0000 |
commit | 3fe11d4734efac588b647e4458f22453f3359fbc (patch) | |
tree | 8a67ebcb7f4cb4e765bd369cbb1acd3f3793adc0 /gdb/ser-unix.c | |
parent | e5307300ce9089e52c3fedfc66c23206a6b14baa (diff) | |
download | gdb-3fe11d4734efac588b647e4458f22453f3359fbc.zip gdb-3fe11d4734efac588b647e4458f22453f3359fbc.tar.gz gdb-3fe11d4734efac588b647e4458f22453f3359fbc.tar.bz2 |
* ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
not an initializer, to copy the structure.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index dbd51df..2fe9be9 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -221,10 +221,11 @@ hardwire_noflush_set_tty_state (scb, new_ttystate, old_ttystate) serial_ttystate new_ttystate; serial_ttystate old_ttystate; { - struct hardwire_ttystate new_state = - *(struct hardwire_ttystate *)new_ttystate; + struct hardwire_ttystate new_state; struct hardwire_ttystate *state = (struct hardwire_ttystate *) old_ttystate; + new_state = *(struct hardwire_ttystate *)new_ttystate; + #ifdef HAVE_TERMIOS /* I'm not sure whether this is necessary; the manpage makes no mention of discarding input when switching to/from ICANON. */ |