1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

PDP11, PDP8, VAX8200: Fix Coverity flagged warnings

This commit is contained in:
Mark Pizzolato
2019-10-20 22:57:02 -07:00
parent 0f72a160fe
commit 281837c68a
3 changed files with 7 additions and 9 deletions

View File

@@ -301,8 +301,9 @@ if ((fnc != TACS_REW) && !(flg & OP_WRI)) { /* spc/read cmd? */
}
if ((old_ust ^ uptr->UST) == (UST_REV|UST_GAP)) { /* reverse in gap? */
if (uptr->UST) /* skip file gap */
sim_tape_rdrecr (uptr, ta_xb, &t, TA_MAXFR);
else sim_tape_rdrecf (uptr, ta_xb, &t, TA_MAXFR);
(void)sim_tape_rdrecr (uptr, ta_xb, &t, TA_MAXFR);
else
(void)sim_tape_rdrecf (uptr, ta_xb, &t, TA_MAXFR);
if (DEBUG_PRS (ta_dev))
fprintf (sim_deb, ">>TA skip gap: op=%o, old_sta = %o, pos=%d\n",
fnc, uptr->UST, uptr->pos);