From: Michael Brown Date: Thu, 11 Jan 2007 04:01:31 +0000 (+0000) Subject: Added strerror(0)=="No error", so that TCP protocols can use X-Git-Tag: v0.9.3~710 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83fa318b868f0eb796ab515365bc349e37dc113d;p=thirdparty%2Fipxe.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. --- diff --git a/src/hci/strerror.c b/src/hci/strerror.c index fbaf52ab8..df2df6bc2 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" };