forked from ShuriZma/suyu
1
0
Fork 0

Update sockets_translate.cpp

Align the error case with it's index in the Errno enum
This commit is contained in:
LotP1 2024-01-30 00:34:07 +01:00 committed by GitHub
parent c0775e74ec
commit 2cc5c517cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,6 @@ Errno Translate(Network::Errno value) {
switch (value) {
case Network::Errno::SUCCESS:
return Errno::SUCCESS;
case Network::Errno::CONNREFUSED:
return Errno::CONNREFUSED;
case Network::Errno::BADF:
return Errno::BADF;
case Network::Errno::AGAIN:
@ -27,6 +25,8 @@ Errno Translate(Network::Errno value) {
return Errno::MFILE;
case Network::Errno::PIPE:
return Errno::PIPE;
case Network::Errno::CONNREFUSED:
return Errno::CONNREFUSED;
case Network::Errno::NOTCONN:
return Errno::NOTCONN;
case Network::Errno::TIMEDOUT: