mirror of
https://github.com/xcat2/xNBA.git
synced 2025-07-23 13:01:08 +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:
@@ -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" };
|
||||
|
Reference in New Issue
Block a user