summaryrefslogtreecommitdiff
path: root/src/uart.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/uart.c
parenta6c056ce150bd0339d5325edc18717b2d02a5b8d (diff)
error: remove and use standard errno codes instead
This change also adds strerror to string.h.
Diffstat (limited to 'src/uart.c')
-rw-r--r--src/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uart.c b/src/uart.c
index eed7fe4..8697874 100644
--- a/src/uart.c
+++ b/src/uart.c
@@ -22,6 +22,7 @@
*/
#include <assert.h>
+#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -31,7 +32,6 @@
#include <lib/macros.h>
#include "cpu.h"
-#include "error.h"
#include "io.h"
#include "uart.h"
#include "thread.h"
@@ -164,7 +164,7 @@ uart_read(uint8_t *byte)
eflags = cpu_intr_save();
if (uart_waiter) {
- error = ERROR_BUSY;
+ error = EBUSY;
goto out;
}