Return value from fread

This commit is contained in:
Justin Ethier 2017-08-11 17:40:41 -04:00
parent 05f885660f
commit 44c21e7788

View file

@ -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)