Remove remaining reference to struct serial::current_timeout
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 21 Mar 2017 15:35:42 +0000 (11:35 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 21 Mar 2017 15:35:42 +0000 (11:35 -0400)
I get this when trying to build for --host=x68_64-w64-mingw32:

/home/emaisin/src/binutils-gdb/gdb/ser-mingw.c: In function 'void ser_windows_raw(serial*)':
/home/emaisin/src/binutils-gdb/gdb/ser-mingw.c:166:8: error: 'struct serial' has no member named 'current_timeout'
   scb->current_timeout = 0;
        ^~~~~~~~~~~~~~~

It is just a leftover from

  9bcbdca808b5f9fec6217d20bd4b48a56008c460
  PR remote/21188: Fix remote serial timeout

gdb/ChangeLog:

* ser-mingw.c (ser_windows_raw): Remove reference to
struct serial::current_timeout.

gdb/ChangeLog
gdb/ser-mingw.c

index 298948e4ddf29042914ad4df7e23a14575a3ca7f..537e5beabc03074ff3a869e2ff0d8670b0206f51 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-21  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ser-mingw.c (ser_windows_raw): Remove reference to
+       struct serial::current_timeout.
+
 2017-03-21  Ivo Raisr  <ivo.raisr@oracle.com>
 
        PR tdep/20928
index 0f2bc3d6e9b3905649000d48ae99cd27b743cb24..3f124582a8529c9bbb90cc8bb22c4104532a297a 100644 (file)
@@ -163,8 +163,6 @@ ser_windows_raw (struct serial *scb)
   state.fAbortOnError = FALSE;
   state.ByteSize = 8;
 
-  scb->current_timeout = 0;
-
   if (SetCommState (h, &state) == 0)
     warning (_("SetCommState failed"));
 }