summaryrefslogtreecommitdiff
path: root/sys/ddb/db_input.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-07-06 18:14:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-07-06 18:14:15 +0000
commita39609914ae952f693e19479146b2fce4ef92098 (patch)
tree60689ddc95c7a602170e6ff8f7bd6dfdbeba53dc /sys/ddb/db_input.c
parentec0f52b41703166cf618fee165484a083ffc0723 (diff)
Remove db_check_interrupt() related logic, since it was dummied in practice.
Diffstat (limited to 'sys/ddb/db_input.c')
-rw-r--r--sys/ddb/db_input.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index af3a12412e6..2e8e44ef0ca 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_input.c,v 1.10 2006/03/13 06:23:20 jsg Exp $ */
+/* $OpenBSD: db_input.c,v 1.11 2006/07/06 18:14:14 miod Exp $ */
/* $NetBSD: db_input.c,v 1.7 1996/02/05 01:57:02 christos Exp $ */
/*
@@ -72,8 +72,6 @@ char * db_history_prev = (char *) 0; /* start of previous line */
#define BLANK ' '
#define BACKUP '\b'
-static int cnmaygetc(void);
-
void
db_putstring(char *s, int count)
{
@@ -344,38 +342,3 @@ db_readline(char *lstart, int lsize)
*db_le = 0;
return (db_le - db_lbuf_start);
}
-
-void
-db_check_interrupt(void)
-{
- int c;
-
- c = cnmaygetc();
- switch (c) {
- case -1: /* no character */
- return;
-
- case CTRL('c'):
- db_error((char *)0);
- /*NOTREACHED*/
-
- case CTRL('s'):
- do {
- c = cnmaygetc();
- if (c == CTRL('c'))
- db_error(NULL);
- /*NOTREACHED*/
- } while (c != CTRL('q'));
- break;
-
- default:
- /* drop on floor */
- break;
- }
-}
-
-static int
-cnmaygetc(void)
-{
- return (-1);
-}