diff --git a/devices/common/scsi/sc53c94.cpp b/devices/common/scsi/sc53c94.cpp index 564554d..518ff33 100644 --- a/devices/common/scsi/sc53c94.cpp +++ b/devices/common/scsi/sc53c94.cpp @@ -216,7 +216,7 @@ void Sc53C94::exec_command() exec_next_command(); break; case CMD_SELECT_NO_ATN: - static SeqDesc sel_no_atn_desc[] { + static SeqDesc * sel_no_atn_desc = new SeqDesc[3]{ {SeqState::SEL_BEGIN, 0, INTSTAT_DIS }, {SeqState::CMD_BEGIN, 3, INTSTAT_SR | INTSTAT_SO}, {SeqState::CMD_COMPLETE, 4, INTSTAT_SR | INTSTAT_SO}, diff --git a/machines/machinepdm.cpp b/machines/machinepdm.cpp index 8ec9717..f8ab534 100644 --- a/machines/machinepdm.cpp +++ b/machines/machinepdm.cpp @@ -109,7 +109,7 @@ int create_pdm(std::string& id) { bool write_flag = false; if (!fd_write_prot.empty()) { - if ((fd_write_prot.compare("ON") == 0) or (fd_write_prot.compare("on") == 0)) { + if ((fd_write_prot.compare("ON") == 0) || (fd_write_prot.compare("on") == 0)) { write_flag = true; } }