* {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
authorFred Fish <fnf@specifix.com>
Fri, 6 Nov 1992 01:35:57 +0000 (01:35 +0000)
committerFred Fish <fnf@specifix.com>
Fri, 6 Nov 1992 01:35:57 +0000 (01:35 +0000)
struct, not struct itself.
* serial.h (serial_restore):  Fix prototype, takes pointer not
struct.

gdb/ChangeLog
gdb/ser-bsd.c
gdb/ser-termios.c
gdb/serial.h

index deb61864517a7cc5b06f880654360429d96a84cb..6eb2743456df4fe12eb2b6238063a505479391ad 100644 (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.
index 45db6cc408437edcc58a14d5a9a285471ec7321a..befc9614384d1615fc701aaf548b6f48d7d80a99 100644 (file)
@@ -221,7 +221,7 @@ serial_close()
   if (desc < 0)
     return;
 
-  serial_restore(desc, oldstate);
+  serial_restore(desc, &oldstate);
 
   close(desc);
   desc = -1;
index 881689f13ce1d910c71e3fd0943ca322ae5f0cf4..b759632f8a36294c5bc15eea5d36a33c598fde25 100644 (file)
@@ -216,7 +216,7 @@ serial_close()
   if (desc < 0)
     return;
 
-  serial_restore(desc, oldstate);
+  serial_restore(desc, &oldstate);
 
   close(desc);
   desc = -1;
index 6a1f2e2683718ec34ff4505cfd6123973ddf1d38..1295d18526607d0ec6ffa7223e58678b39e2c8ea 100644 (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));