BESM6: Fixed a compilation warning and a Coverity defect.

This commit is contained in:
Leo Broukhis 2022-03-18 07:49:07 -07:00
parent 6afef3fabf
commit 203ca72356
2 changed files with 3 additions and 2 deletions

View file

@ -903,7 +903,7 @@ void disk_ctl (int ctlr, uint32 cmd)
c->status |= STATUS_ABSENT; c->status |= STATUS_ABSENT;
else if (md_unit[c->dev].flags & UNIT_ATT) else if (md_unit[c->dev].flags & UNIT_ATT)
c->status |= STATUS_POWERUP; c->status |= STATUS_POWERUP;
if (md_unit[c->dev].flags & UNIT_RO) if (c->dev != -1 && md_unit[c->dev].flags & UNIT_RO)
c->status |= STATUS_READONLY; c->status |= STATUS_READONLY;
c->status >>= 12; c->status >>= 12;
#if 1 #if 1

View file

@ -1058,8 +1058,9 @@ int vt_getc (int num)
TMLN *t = &tty_line [num]; TMLN *t = &tty_line [num];
extern int32 sim_int_char; extern int32 sim_int_char;
int c; int c;
#ifdef REMOTE_TIMEOUT
time_t now; time_t now;
#endif
if (! t->conn) { if (! t->conn) {
/* Пользователь отключился. */ /* Пользователь отключился. */
if (t->ipad) { if (t->ipad) {