summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/x2201.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/x2201.cpp')
-rw-r--r--src/devices/machine/x2201.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/machine/x2201.cpp b/src/devices/machine/x2201.cpp
index 77007435e9b..cc35e7c8051 100644
--- a/src/devices/machine/x2201.cpp
+++ b/src/devices/machine/x2201.cpp
@@ -23,7 +23,7 @@
**********************************************************************/
#include "emu.h"
-#include "machine/x2201.h"
+#include "x2201.h"
#include <algorithm>
@@ -99,8 +99,8 @@ void x2201_device::nvram_default()
bool x2201_device::nvram_read(util::read_stream &file)
{
- size_t actual;
- return !file.read(&m_eeprom[0], 1024 / 8, actual) && actual == 1024 / 8;
+ auto const [err, actual] = util::read(file, &m_eeprom[0], 1024 / 8);
+ return !err && (actual == 1024 / 8);
}
@@ -111,8 +111,8 @@ bool x2201_device::nvram_read(util::read_stream &file)
bool x2201_device::nvram_write(util::write_stream &file)
{
- size_t actual;
- return !file.write(&m_eeprom[0], 1024 / 8, actual) && actual == 1024 / 8;
+ auto const [err, actual] = util::write(file, &m_eeprom[0], 1024 / 8);
+ return !err;
}