mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* remote-hms.c, ser-go32.c, serial.h: Change from
serial_timedreadchar() to new serial_readchar().
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user