summaryrefslogtreecommitdiff
path: root/src/stdiodevice.cc
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-11 19:28:50 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-11 19:28:50 +0200
commit3ea7edf8c9bf7583c426178d4aaff4fb5b736bd2 (patch)
treeae78ebf9e9d1f70da8a6fdad1504063644ee8f1e /src/stdiodevice.cc
parent1a7c572099edf744d6bb67318cff215de3fcd897 (diff)
use some enum classes
move ParseResult to recursivedescent.h
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;
}