Browse Source

Add EIO.

Kill errortab array; it can screw up alignment.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
07ddaedd33
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      src/hci/strerror.c

+ 4
- 5
src/hci/strerror.c View File

@@ -53,8 +53,7 @@ const char * strerror ( int errno ) {
53 53
 }
54 54
 
55 55
 /** The most common errors */
56
-struct errortab common_errortab[] __errortab = {
57
-	{ ENOMEM, "Out of memory" },
58
-	{ EINVAL, "Invalid argument" },
59
-	{ ENOSPC, "No space left on device" },
60
-};
56
+struct errortab enoem __errortab = { ENOMEM, "Out of memory" };
57
+struct errortab einval __errortab = { EINVAL, "Invalid argument" };
58
+struct errortab enospc __errortab = { ENOSPC, "No space left on device" };
59
+struct errortab eio __errortab = { EIO, "Input/output error" };

Loading…
Cancel
Save