diff options
author | Michael Brown | 2007-01-11 05:01:31 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-11 05:01:31 +0100 |
commit | 83fa318b868f0eb796ab515365bc349e37dc113d (patch) | |
tree | 2cb47831f20e87b8dca6d56f1b295fa5bf19d680 /src/hci | |
parent | Update buffer-handling code to enable expandable buffers. (diff) | |
download | ipxe-83fa318b868f0eb796ab515365bc349e37dc113d.tar.gz ipxe-83fa318b868f0eb796ab515365bc349e37dc113d.tar.xz ipxe-83fa318b868f0eb796ab515365bc349e37dc113d.zip |
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.
Diffstat (limited to 'src/hci')
-rw-r--r-- | src/hci/strerror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci/strerror.c b/src/hci/strerror.c index fbaf52ab..df2df6bc 100644 --- a/src/hci/strerror.c +++ b/src/hci/strerror.c @@ -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" }; |