summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 21:54:59 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 21:54:59 +0000
commit55a05995977ff661af3b9e512515abc461867ca5 (patch)
treed4bb8dcc9cdf6a4c586530a373c0849e4080678a /sys/arch/i386/stand/libsa
parent131b9116e2e83a04a7aab4b8596774aa49ed6935 (diff)
move getchar() into libsa where applicable
ok miod@
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/dev_i386.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c
index 7f8b81971a4..7ae77e3bdfb 100644
--- a/sys/arch/i386/stand/libsa/dev_i386.c
+++ b/sys/arch/i386/stand/libsa/dev_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_i386.c,v 1.38 2012/11/01 00:55:38 jsing Exp $ */
+/* $OpenBSD: dev_i386.c,v 1.39 2014/07/12 21:54:58 jasper Exp $ */
/*
* Copyright (c) 1996-1999 Michael Shalayeff
@@ -191,22 +191,6 @@ putchar(int c)
}
}
-int
-getchar(void)
-{
- register int c = cngetc();
-
- if (c == '\r')
- c = '\n';
-
- if ((c < ' ' && c != '\n') || c == '\177')
- return c;
-
- putchar(c);
-
- return c;
-}
-
char ttyname_buf[8];
char *