summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/s32comm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/s32comm.cpp')
-rw-r--r--src/mame/machine/s32comm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/s32comm.cpp b/src/mame/machine/s32comm.cpp
index b53448b46d3..420b7d54471 100644
--- a/src/mame/machine/s32comm.cpp
+++ b/src/mame/machine/s32comm.cpp
@@ -266,7 +266,7 @@ int s32comm_device::read_frame(int dataSize)
// try to read a message
std::uint32_t recv = 0;
- osd_file::error filerr = m_line_rx->read(m_buffer0, 0, dataSize, recv);
+ std::error_condition filerr = m_line_rx->read(m_buffer0, 0, dataSize, recv);
if (recv > 0)
{
// check if message complete
@@ -287,14 +287,14 @@ int s32comm_device::read_frame(int dataSize)
togo -= recv;
offset += recv;
}
- else if (filerr == osd_file::error::NONE && recv == 0)
+ else if (!filerr && recv == 0)
{
togo = 0;
}
}
}
}
- else if (filerr == osd_file::error::NONE && recv == 0)
+ else if (!filerr && recv == 0)
{
if (m_linkalive == 0x01)
{
@@ -322,11 +322,11 @@ void s32comm_device::send_frame(int dataSize){
if (!m_line_tx)
return;
- osd_file::error filerr;
+ std::error_condition filerr;
std::uint32_t written;
filerr = m_line_tx->write(&m_buffer0, 0, dataSize, written);
- if (filerr != osd_file::error::NONE)
+ if (filerr)
{
if (m_linkalive == 0x01)
{