From: Fred Fish Date: Fri, 6 Nov 1992 01:35:57 +0000 (+0000) Subject: * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=402dca80e7bb6bd2f98d238224a8b34278dbf2ae;p=binutils-gdb.git * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of struct, not struct itself. * serial.h (serial_restore): Fix prototype, takes pointer not struct. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index deb61864517..6eb2743456d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Nov 5 17:33:08 1992 Fred Fish (fnf@cygnus.com) + + * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of + struct, not struct itself. + * serial.h (serial_restore): Fix prototype, takes pointer not + struct. + Thu Nov 5 17:12:42 1992 Stu Grossman (grossman at cygnus.com) * Makefile.in (depend): Add nm.h to the list of things to fixup. diff --git a/gdb/ser-bsd.c b/gdb/ser-bsd.c index 45db6cc4084..befc9614384 100644 --- a/gdb/ser-bsd.c +++ b/gdb/ser-bsd.c @@ -221,7 +221,7 @@ serial_close() if (desc < 0) return; - serial_restore(desc, oldstate); + serial_restore(desc, &oldstate); close(desc); desc = -1; diff --git a/gdb/ser-termios.c b/gdb/ser-termios.c index 881689f13ce..b759632f8a3 100644 --- a/gdb/ser-termios.c +++ b/gdb/ser-termios.c @@ -216,7 +216,7 @@ serial_close() if (desc < 0) return; - serial_restore(desc, oldstate); + serial_restore(desc, &oldstate); close(desc); desc = -1; diff --git a/gdb/serial.h b/gdb/serial.h index 6a1f2e26837..1295d185266 100644 --- a/gdb/serial.h +++ b/gdb/serial.h @@ -78,4 +78,4 @@ void serial_close PARAMS ((void)); /* Restore the serial port to the state saved in oldstate */ -void serial_restore PARAMS ((int desc, struct ttystate oldstate)); +void serial_restore PARAMS ((int desc, struct ttystate *oldstate));