* {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:
Fred Fish 1992-11-06 01:35:57 +00:00
parent 2352d20bd7
commit 402dca80e7
4 changed files with 10 additions and 3 deletions

View File

@ -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.

View File

@ -221,7 +221,7 @@ serial_close()
if (desc < 0)
return;
serial_restore(desc, oldstate);
serial_restore(desc, &oldstate);
close(desc);
desc = -1;

View File

@ -216,7 +216,7 @@ serial_close()
if (desc < 0)
return;
serial_restore(desc, oldstate);
serial_restore(desc, &oldstate);
close(desc);
desc = -1;

View File

@ -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));