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/spinlock.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/spinlock.c')
-rw-r--r-- | kern/spinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/spinlock.c b/kern/spinlock.c index 9857b38..5ba9116 100644 --- a/kern/spinlock.c +++ b/kern/spinlock.c @@ -64,11 +64,11 @@ */ #include <assert.h> +#include <errno.h> #include <stdalign.h> #include <stddef.h> #include <kern/atomic.h> -#include <kern/error.h> #include <kern/init.h> #include <kern/macros.h> #include <kern/percpu.h> @@ -253,7 +253,7 @@ spinlock_try_downgrade(struct spinlock *lock, unsigned int oldqid) assert(prev != SPINLOCK_QID_NULL); if (prev != oldqid) { - return ERROR_BUSY; + return EBUSY; } return 0; |