mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
Added strerror(0)=="No error", so that TCP protocols can use
strerror(rc) in their closed() methods without producing "Error 0x0000" when the connection is closed normally.
This commit is contained in:
parent
e2dcd05b67
commit
83fa318b86
@ -55,6 +55,7 @@ const char * strerror ( int errno ) {
|
||||
}
|
||||
|
||||
/** The most common errors */
|
||||
struct errortab enoerr __errortab = { 0, "No error" };
|
||||
struct errortab enoem __errortab = { ENOMEM, "Out of memory" };
|
||||
struct errortab einval __errortab = { EINVAL, "Invalid argument" };
|
||||
struct errortab enospc __errortab = { ENOSPC, "No space left on device" };
|
||||
|
Loading…
Reference in New Issue
Block a user