mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 15:27:36 +02:00
Return value from fread
This commit is contained in:
parent
05f885660f
commit
44c21e7788
1 changed files with 1 additions and 1 deletions
|
@ -5684,7 +5684,7 @@ int read_from_port(port_type *p)
|
|||
rv = fread(buf, sizeof(char), CYC_IO_BUF_LEN, fp);
|
||||
p->mem_buf_len = rv;
|
||||
p->buf_idx = 0;
|
||||
return (rv == 0);
|
||||
return rv;
|
||||
}
|
||||
|
||||
void _read_line_comment(port_type *p)
|
||||
|
|
Loading…
Add table
Reference in a new issue