aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-go32.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-10-19 23:40:36 +0000
committerStu Grossman <grossman@cygnus>1992-10-19 23:40:36 +0000
commit5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5 (patch)
tree00629c7fe31fe6cfea9c23c7ebdc2dbcb7f9c2ad /gdb/ser-go32.c
parentd95eb93075be55937407bb52e9081468aa12494a (diff)
downloadgdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.zip
gdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.tar.gz
gdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.tar.bz2
* remote-hms.c, ser-go32.c, serial.h: Change from
serial_timedreadchar() to new serial_readchar().
Diffstat (limited to 'gdb/ser-go32.c')
-rw-r--r--gdb/ser-go32.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index 3e446aa..f729d72 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -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