mirror of https://github.com/ipxe/ipxe.git
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.pull/1/head
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