* remote-hms.c, ser-go32.c, serial.h: Change from
[external/binutils.git] / gdb / ser-go32.c
index 3e446aa..f729d72 100644 (file)
@@ -294,20 +294,14 @@ serial_open (name)
 }
 
 int
-serial_timedreadchar (to, ok)
+serial_readchar (to)
       int to;
-      int *ok;
 {
   char buf;
   if (dosasync_read(fd, &buf, 1, to))  
-  {
-    *ok = 1;
-  }
+    return buf;
   else
-  {
-    *ok = 0;
-  }
-  return buf;
+    return -2; /* Timeout, I guess */
 }
 
 int