summaryrefslogtreecommitdiff
path: root/src/i8259.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-05 01:58:08 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-05 01:58:26 +0100
commit62d27d872769ebcd79a931fa07b1128576e65e65 (patch)
tree0a99e87809c9055dcdcfbd9ed4bec1a72534ced9 /src/i8259.c
parenta6c056ce150bd0339d5325edc18717b2d02a5b8d (diff)
error: remove and use standard errno codes instead
This change also adds strerror to string.h.
Diffstat (limited to 'src/i8259.c')
-rw-r--r--src/i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i8259.c b/src/i8259.c
index 589e13c..aed7068 100644
--- a/src/i8259.c
+++ b/src/i8259.c
@@ -38,6 +38,7 @@
*/
#include <assert.h>
+#include <errno.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
@@ -45,7 +46,6 @@
#include <lib/macros.h>
#include "cpu.h"
-#include "error.h"
#include "i8259.h"
#include "io.h"
@@ -131,7 +131,7 @@ i8259_convert_global_irq(unsigned int irq, struct i8259_pic **pic,
error = 0;
} else {
*local_irq = 0;
- error = ERROR_INVAL;
+ error = EINVAL;
}
return error;