* remote-hms.c, ser-go32.c, serial.h: Change from

serial_timedreadchar() to new serial_readchar().
This commit is contained in:
Stu Grossman
1992-10-19 23:40:36 +00:00
parent d95eb93075
commit 5a6242dddd
4 changed files with 14 additions and 19 deletions

View 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