From 83fa318b868f0eb796ab515365bc349e37dc113d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 11 Jan 2007 04:01:31 +0000 Subject: [PATCH] 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. --- src/hci/strerror.c | 1 + 1 file changed, 1 insertion(+) 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" };