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/init.h | |
parent | be5b9d6ab9f7e7a81c367e4bb0823ba11f85940f (diff) |
New errno.h standard header
Use standard errno codes. This change also adds strerror to string.h.
Diffstat (limited to 'kern/init.h')
-rw-r--r-- | kern/init.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/init.h b/kern/init.h index 11a0c804..809123d4 100644 --- a/kern/init.h +++ b/kern/init.h @@ -42,7 +42,8 @@ #ifndef __ASSEMBLER__ -#include <kern/error.h> +#include <errno.h> + #include <kern/macros.h> #define __init __section(QUOTE(INIT_SECTION)) @@ -94,7 +95,7 @@ typedef int (*init_op_fn_t)(void); .name = QUOTE(_fn), \ .fn = _fn, \ .deps = INIT_OP_DEPS(_fn), \ - .error = ERROR_AGAIN, \ + .error = EAGAIN, \ .state = INIT_OP_STATE_UNLINKED, \ .nr_deps = ARRAY_SIZE(INIT_OP_DEPS(_fn)), \ .nr_parents = 0, \ |