diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-24 06:45:44 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-24 06:48:21 +0100 |
commit | 7dcf6715ffb3cc2f00f6327b896d16f173a1b082 (patch) | |
tree | 210570e98e074d7abade0d22c64e05b9c02435ba /kern/intr.c | |
parent | be5b9d6ab9f7e7a81c367e4bb0823ba11f85940f (diff) |
New errno.h standard header
Use standard errno codes. This change also adds strerror to string.h.
Diffstat (limited to 'kern/intr.c')
-rw-r--r-- | kern/intr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/intr.c b/kern/intr.c index 9a1ad71e..541dc5cb 100644 --- a/kern/intr.c +++ b/kern/intr.c @@ -22,6 +22,7 @@ * Shared interrupts are supported. */ +#include <errno.h> #include <stdalign.h> #include <stdbool.h> #include <stddef.h> @@ -107,7 +108,7 @@ intr_handler_create(struct intr_handler **handlerp, handler = kmem_cache_alloc(&intr_handler_cache); if (handler == NULL) { - return ERROR_NOMEM; + return ENOMEM; } handler->fn = fn; @@ -259,7 +260,7 @@ intr_entry_add(struct intr_entry *entry, struct intr_handler *handler) ctl = intr_lookup_ctl(intr_entry_get_intr(entry)); if (ctl == NULL) { - error = ERROR_NODEV; + error = ENODEV; goto out; } |