summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-08 19:21:47 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-08 19:21:47 +1000
commit227db142e25f74ceb82edebb05686a5f5cc11003 (patch)
tree05b4c58527c7d1572484779e7cc30e5f23010d2b
parent3aa9c0d1518ceec8e3f9ad93efa84bf90e1f1b21 (diff)
sockets: reorder errno values numerically
Reorder the Errno enum values to be in ascending numerical order, moving NOMEM (12) to be between AGAIN (11) and INVAL (22). This improves readability and makes it easier to verify completeness of the error code list.
-rw-r--r--src/core/hle/service/sockets/sockets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h
index 978796455..23c4fd640 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -16,6 +16,7 @@ enum class Errno : u32 {
SUCCESS = 0,
BADF = 9,
AGAIN = 11,
+ NOMEM = 12,
INVAL = 22,
MFILE = 24,
PIPE = 32,
@@ -26,7 +27,6 @@ enum class Errno : u32 {
TIMEDOUT = 110,
CONNREFUSED = 111,
INPROGRESS = 115,
- NOMEM = 12,
};
enum class GetAddrInfoError : s32 {