From: Jim Kingdon Date: Fri, 2 Jul 1993 02:50:43 +0000 (+0000) Subject: * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fe11d4734efac588b647e4458f22453f3359fbc;p=binutils-gdb.git * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment, not an initializer, to copy the structure. --- diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index dbd51dfec43..2fe9be99622 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. */