Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa After the "insert disk <number>, and press ret...



details:   https://anonhg.NetBSD.org/src/rev/873a29503066
branches:  trunk
changeset: 544108:873a29503066
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Tue Mar 11 19:43:04 2003 +0000

description:
After the "insert disk <number>, and press return..." message, check only
for the return keypress.

diffstat:

 sys/lib/libsa/ustarfs.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 2ec1d60aeeda -r 873a29503066 sys/lib/libsa/ustarfs.c
--- a/sys/lib/libsa/ustarfs.c   Tue Mar 11 18:32:59 2003 +0000
+++ b/sys/lib/libsa/ustarfs.c   Tue Mar 11 19:43:04 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ustarfs.c,v 1.19 2002/05/10 11:07:01 lukem Exp $       */
+/*     $NetBSD: ustarfs.c,v 1.20 2003/03/11 19:43:04 jmmv Exp $        */
 
 /* [Notice revision 2.2]
  * Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
@@ -284,7 +284,11 @@
 #ifdef HAVE_CHANGEDISK_HOOK
                changedisk_hook(f);
 #else
-               getchar();
+               for (;;) {
+                       int c = getchar();
+                       if ((c == '\n') || (c == '\r'))
+                               break;
+               }
 #endif
                printf("\n");
                e = ustarfs_cylinder_read(f, 0, needvolume != 0);



Home | Main Index | Thread Index | Old Index