diff options
author | Fred Fish <fnf@specifix.com> | 1992-11-06 01:35:57 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-11-06 01:35:57 +0000 |
commit | 402dca80e7bb6bd2f98d238224a8b34278dbf2ae (patch) | |
tree | 43709a481b1c676b35d01a7821c15d5aefdaf662 /gdb | |
parent | 2352d20bd7521afc2b135b7ecb5d41c55a3e8d69 (diff) | |
download | gdb-402dca80e7bb6bd2f98d238224a8b34278dbf2ae.zip gdb-402dca80e7bb6bd2f98d238224a8b34278dbf2ae.tar.gz gdb-402dca80e7bb6bd2f98d238224a8b34278dbf2ae.tar.bz2 |
* {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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/ser-bsd.c | 2 | ||||
-rw-r--r-- | gdb/ser-termios.c | 2 | ||||
-rw-r--r-- | gdb/serial.h | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index deb6186..6eb2743 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 45db6cc..befc961 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 881689f..b759632 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 6a1f2e2..1295d18 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)); |