1
0
mirror of https://github.com/simh/simh.git synced 2026-05-05 07:23:34 +00:00

Compiler suggested fixes

This commit is contained in:
Mark Pizzolato
2013-01-23 12:36:03 -08:00
parent f7e8024c59
commit 9091330a5f
6 changed files with 10 additions and 8 deletions

View File

@@ -1019,6 +1019,8 @@ switch (rlcs_state) {
if (sim_fseek (uptr->fileref, da, SEEK_SET))
return SCPE_IOERR;
bcnt = sim_fread (rlcs_buf, sizeof (int16), RL_NUMBY, uptr->fileref);
if (bcnt != (sizeof (int16) * RL_NUMBY))
return SCPE_IOERR;
}
if (rlcs_bcnt < RL_NUMBY) { /* more data in buffer? */
cso_buf = rlcs_buf[rlcs_bcnt++]; /* return next word */
@@ -1048,6 +1050,8 @@ switch (rlcs_state) {
if (sim_fseek (uptr->fileref, da, SEEK_SET))
return SCPE_IOERR;
bcnt = sim_fwrite (rlcs_buf, sizeof (int16), RL_NUMBY, uptr->fileref);
if (bcnt != (sizeof (int16) * RL_NUMBY))
return SCPE_IOERR;
rlcs_state = RL_IDLE; /* now idle */
rlcs_bcnt = 0;
cso_csr = cso_csr | CSR_DONE | /* complete */