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/sref.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/sref.c')
-rw-r--r-- | kern/sref.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/sref.c b/kern/sref.c index 2b20cb4..3539e46 100644 --- a/kern/sref.c +++ b/kern/sref.c @@ -43,13 +43,13 @@ */ #include <assert.h> +#include <errno.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <kern/condition.h> #include <kern/cpumap.h> -#include <kern/error.h> #include <kern/init.h> #include <kern/list.h> #include <kern/log.h> @@ -256,7 +256,7 @@ sref_weakref_kill(struct sref_weakref *weakref) if (oldval != addr) { assert((oldval & SREF_WEAKREF_MASK) == (addr & SREF_WEAKREF_MASK)); - return ERROR_BUSY; + return EBUSY; } return 0; @@ -936,7 +936,7 @@ sref_unregister(void) if (dirty) { sref_cache_mark_registered(cache); - error = ERROR_BUSY; + error = EBUSY; goto out; } @@ -957,7 +957,7 @@ sref_unregister(void) error = 0; } else { sref_cache_manage(cache); - error = ERROR_BUSY; + error = EBUSY; } if (error) { |