mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 19:44:11 +08:00
* {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.
This commit is contained in:
parent
2352d20bd7
commit
402dca80e7
@ -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.
|
||||
|
@ -221,7 +221,7 @@ serial_close()
|
||||
if (desc < 0)
|
||||
return;
|
||||
|
||||
serial_restore(desc, oldstate);
|
||||
serial_restore(desc, &oldstate);
|
||||
|
||||
close(desc);
|
||||
desc = -1;
|
||||
|
@ -216,7 +216,7 @@ serial_close()
|
||||
if (desc < 0)
|
||||
return;
|
||||
|
||||
serial_restore(desc, oldstate);
|
||||
serial_restore(desc, &oldstate);
|
||||
|
||||
close(desc);
|
||||
desc = -1;
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user