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

All: Fix various Coverity complaints

This commit is contained in:
Mark Pizzolato
2019-04-03 09:32:54 -07:00
parent e6490223eb
commit fa77969c57
7 changed files with 14 additions and 8 deletions

View File

@@ -345,7 +345,7 @@ do {
break;
case EXE_PDV: /* optional */
fseek (fileref, bsz * sizeof (d10), SEEK_CUR); /* skip data */
(void)fseek (fileref, bsz * sizeof (d10), SEEK_CUR);/* skip data */
break;
case EXE_VEC: /* entry vec */
@@ -374,7 +374,7 @@ for (i = 0; i < ndir; i = i + 2) { /* loop thru dir */
rpt = ((int32) ((dirbuf[i + 1] >> 27) + 1)) & 0777; /* repeat count */
for (j = 0; j < rpt; j++, mpage++) { /* loop thru rpts */
if (fpage) { /* file pages? */
fseek (fileref, (fpage << PAG_V_PN) * sizeof (d10), SEEK_SET);
(void)fseek (fileref, (fpage << PAG_V_PN) * sizeof (d10), SEEK_SET);
wc = fxread (pagbuf, sizeof (d10), PAG_SIZE, fileref);
if (wc < PAG_SIZE)
return SCPE_FMT;
@@ -424,7 +424,7 @@ else {
fmt = FMT_S;
else fmt = FMT_R; /* RIM has SA == 0 */
}
fseek (fileref, 0, SEEK_SET); /* rewind */
(void)fseek (fileref, 0, SEEK_SET); /* rewind */
}
switch (fmt) { /* case fmt */