diff options
author | jkh <jkh@FreeBSD.org> | 1996-08-03 05:25:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-08-03 05:25:56 +0000 |
commit | 05e454700fc4a200935a617c0e1b2df543aee3a8 (patch) | |
tree | 11eae43408dbf5aed5e8cd2401148dc236d9879f | |
parent | b74a92de4e4f9aa628fb1a0ad468003670cce2cc (diff) | |
download | FreeBSD-src-05e454700fc4a200935a617c0e1b2df543aee3a8.zip FreeBSD-src-05e454700fc4a200935a617c0e1b2df543aee3a8.tar.gz |
Fix an embarassing bogon in the key input code. I'll roll another snap
boot floppy for this one..
-rw-r--r-- | release/sysinstall/label.c | 10 | ||||
-rw-r--r-- | usr.sbin/sade/label.c | 10 | ||||
-rw-r--r-- | usr.sbin/sysinstall/label.c | 10 |
3 files changed, 12 insertions, 18 deletions
diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c index 6d6e76c..0c70f36 100644 --- a/release/sysinstall/label.c +++ b/release/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.55 1996/07/31 09:29:32 jkh Exp $ + * $Id: label.c,v 1.56 1996/08/01 11:39:49 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -497,10 +497,8 @@ diskLabel(char *str) move(23, 0); clrtoeol(); } - key = getch() & 0x7F; - if (islower(key)) - key = toupper(key); - switch (key) { + key = getch(); + switch (toupper(key)) { int i; static char _msg[40]; @@ -728,7 +726,7 @@ diskLabel(char *str) } break; - case '\177': + case KEY_DC: case 'D': /* delete */ if (label_chunk_info[here].type == PART_SLICE) { msg = MSG_NOT_APPLICABLE; diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index 6d6e76c..0c70f36 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.55 1996/07/31 09:29:32 jkh Exp $ + * $Id: label.c,v 1.56 1996/08/01 11:39:49 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -497,10 +497,8 @@ diskLabel(char *str) move(23, 0); clrtoeol(); } - key = getch() & 0x7F; - if (islower(key)) - key = toupper(key); - switch (key) { + key = getch(); + switch (toupper(key)) { int i; static char _msg[40]; @@ -728,7 +726,7 @@ diskLabel(char *str) } break; - case '\177': + case KEY_DC: case 'D': /* delete */ if (label_chunk_info[here].type == PART_SLICE) { msg = MSG_NOT_APPLICABLE; diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 6d6e76c..0c70f36 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.55 1996/07/31 09:29:32 jkh Exp $ + * $Id: label.c,v 1.56 1996/08/01 11:39:49 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -497,10 +497,8 @@ diskLabel(char *str) move(23, 0); clrtoeol(); } - key = getch() & 0x7F; - if (islower(key)) - key = toupper(key); - switch (key) { + key = getch(); + switch (toupper(key)) { int i; static char _msg[40]; @@ -728,7 +726,7 @@ diskLabel(char *str) } break; - case '\177': + case KEY_DC: case 'D': /* delete */ if (label_chunk_info[here].type == PART_SLICE) { msg = MSG_NOT_APPLICABLE; |