summaryrefslogtreecommitdiff
path: root/arch/x86/machine/atcons.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-24 06:45:44 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-24 06:48:21 +0100
commit7dcf6715ffb3cc2f00f6327b896d16f173a1b082 (patch)
tree210570e98e074d7abade0d22c64e05b9c02435ba /arch/x86/machine/atcons.c
parentbe5b9d6ab9f7e7a81c367e4bb0823ba11f85940f (diff)
New errno.h standard header
Use standard errno codes. This change also adds strerror to string.h.
Diffstat (limited to 'arch/x86/machine/atcons.c')
-rw-r--r--arch/x86/machine/atcons.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/machine/atcons.c b/arch/x86/machine/atcons.c
index 0c35266f..a94ae91c 100644
--- a/arch/x86/machine/atcons.c
+++ b/arch/x86/machine/atcons.c
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <errno.h>
#include <stdbool.h>
#include <string.h>
@@ -76,12 +77,12 @@ atcons_esc_seq_lookup(const struct atcons_esc_seq **seqp)
*seqp = seq;
return 0;
} else {
- return ERROR_AGAIN;
+ return EAGAIN;
}
}
}
- return ERROR_SRCH;
+ return ESRCH;
}
static void
@@ -101,7 +102,7 @@ atcons_process_esc_seq(char c)
error = atcons_esc_seq_lookup(&seq);
if (error) {
- if (error != ERROR_AGAIN) {
+ if (error != EAGAIN) {
atcons_reset_esc_seq();
}
} else {