summaryrefslogtreecommitdiff
path: root/Libraries/LibLine
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-10 12:58:27 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-10 13:09:35 +0200
commitc06d5ef114a385944289d8c6a849bf34e544fe55 (patch)
tree68724bede1dadab6b6e925eae0ad7445192713c9 /Libraries/LibLine
parente5da1cc5660f6a284b9b21c7bcb1a547fac1cabe (diff)
downloadserenity-c06d5ef114a385944289d8c6a849bf34e544fe55.zip
Kernel+LibC: Remove ESUCCESS
There's no official ESUCCESS==0 errno code, and it keeps breaking the Lagom build when we use it, so let's just say 0 instead.
Diffstat (limited to 'Libraries/LibLine')
-rw-r--r--Libraries/LibLine/Editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp
index 37f9671a0a..58413ba4c4 100644
--- a/Libraries/LibLine/Editor.cpp
+++ b/Libraries/LibLine/Editor.cpp
@@ -654,7 +654,7 @@ Vector<size_t, 2> Editor::vt_dsr()
do {
auto nread = read(0, buf + length, 16 - length);
if (nread < 0) {
- if (errno == ESUCCESS) {
+ if (errno == 0) {
// ????
continue;
}