mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-23 19:10:50 +00: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)
|
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.
|
* Makefile.in (depend): Add nm.h to the list of things to fixup.
|
||||||
|
@ -221,7 +221,7 @@ serial_close()
|
|||||||
if (desc < 0)
|
if (desc < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
serial_restore(desc, oldstate);
|
serial_restore(desc, &oldstate);
|
||||||
|
|
||||||
close(desc);
|
close(desc);
|
||||||
desc = -1;
|
desc = -1;
|
||||||
|
@ -216,7 +216,7 @@ serial_close()
|
|||||||
if (desc < 0)
|
if (desc < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
serial_restore(desc, oldstate);
|
serial_restore(desc, &oldstate);
|
||||||
|
|
||||||
close(desc);
|
close(desc);
|
||||||
desc = -1;
|
desc = -1;
|
||||||
|
@ -78,4 +78,4 @@ void serial_close PARAMS ((void));
|
|||||||
|
|
||||||
/* Restore the serial port to the state saved in oldstate */
|
/* 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…
x
Reference in New Issue
Block a user