1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

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.
This commit is contained in:
Andreas Kling 2020-04-10 12:58:27 +02:00
parent e5da1cc566
commit c06d5ef114
4 changed files with 4 additions and 5 deletions

View file

@ -49,7 +49,7 @@ public:
operator int() const { return m_error; }
int error() const { return m_error; }
bool is_success() const { return m_error == ESUCCESS; }
bool is_success() const { return m_error == 0; }
bool is_error() const { return !is_success(); }
private: