summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/stand/libsa/dev_hppa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/stand/libsa/dev_hppa.c')
-rw-r--r--sys/arch/hppa/stand/libsa/dev_hppa.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/sys/arch/hppa/stand/libsa/dev_hppa.c b/sys/arch/hppa/stand/libsa/dev_hppa.c
index b716fe8ff0a..8ed4b5212ec 100644
--- a/sys/arch/hppa/stand/libsa/dev_hppa.c
+++ b/sys/arch/hppa/stand/libsa/dev_hppa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_hppa.c,v 1.16 2014/07/12 21:54:58 jasper Exp $ */
+/* $OpenBSD: dev_hppa.c,v 1.17 2014/07/13 09:26:08 jasper Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -167,39 +167,8 @@ devboot(dev, p)
*p = '\0';
}
-int pch_pos;
-
-void
-putchar(c)
- int c;
-{
- switch(c) {
- case '\177': /* DEL erases */
- cnputc('\b');
- cnputc(' ');
- case '\b':
- cnputc('\b');
- if (pch_pos)
- pch_pos--;
- break;
- case '\t':
- do
- cnputc(' ');
- while(++pch_pos % 8);
- break;
- case '\n':
- case '\r':
- cnputc(c);
- pch_pos=0;
- break;
- default:
- cnputc(c);
- pch_pos++;
- break;
- }
-}
-
char ttyname_buf[8];
+
char *
ttyname(fd)
int fd;