aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-go32.c
diff options
context:
space:
mode:
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