From 07ddaedd33cca58f06d792f8853b15957c56895d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 20 Dec 2006 07:57:40 +0000 Subject: [PATCH] Add EIO. Kill errortab array; it can screw up alignment. --- src/hci/strerror.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hci/strerror.c b/src/hci/strerror.c index 70331e42..e84c852f 100644 --- a/src/hci/strerror.c +++ b/src/hci/strerror.c @@ -53,8 +53,7 @@ const char * strerror ( int errno ) { } /** The most common errors */ -struct errortab common_errortab[] __errortab = { - { ENOMEM, "Out of memory" }, - { EINVAL, "Invalid argument" }, - { ENOSPC, "No space left on device" }, -}; +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" }; +struct errortab eio __errortab = { EIO, "Input/output error" };