mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +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:
@@ -216,7 +216,7 @@ serial_close()
|
||||
if (desc < 0)
|
||||
return;
|
||||
|
||||
serial_restore(desc, oldstate);
|
||||
serial_restore(desc, &oldstate);
|
||||
|
||||
close(desc);
|
||||
desc = -1;
|
||||
|
||||
Reference in New Issue
Block a user