summaryrefslogtreecommitdiff
path: root/src/stdiodevice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdiodevice.cc')
-rw-r--r--src/stdiodevice.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdiodevice.cc b/src/stdiodevice.cc
index 919e92c..4b97c07 100644
--- a/src/stdiodevice.cc
+++ b/src/stdiodevice.cc
@@ -49,7 +49,7 @@ bool StdIODevice::waitForWrite() const
&writeMask,
nullptr,
timeout ? &tv : nullptr);
- if (result == 0) error = Timeout;
+ if (result == 0) error = Error::Timeout;
return result > 0;
}
@@ -64,7 +64,7 @@ bool StdIODevice::waitForRead() const
tv.tv_usec = 0;
int result = select(fileno(stdin) + 1, &readMask, nullptr, nullptr, timeout ? &tv : nullptr);
- if (result == 0) error = Timeout;
+ if (result == 0) error = Error::Timeout;
return result > 0;
}