Source-Changes-HG archive

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

[src/trunk]: src/sys/stand/efiboot Only need to ischar() once when polling fo...



details:   https://anonhg.NetBSD.org/src/rev/6f6a36f0b642
branches:  trunk
changeset: 433452:6f6a36f0b642
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Sep 15 16:41:37 2018 +0000

description:
Only need to ischar() once when polling for input

diffstat:

 sys/stand/efiboot/prompt.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r b9490029d188 -r 6f6a36f0b642 sys/stand/efiboot/prompt.c
--- a/sys/stand/efiboot/prompt.c        Sat Sep 15 16:22:20 2018 +0000
+++ b/sys/stand/efiboot/prompt.c        Sat Sep 15 16:41:37 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prompt.c,v 1.2 2018/08/24 20:55:20 jmcneill Exp $      */
+/*     $NetBSD: prompt.c,v 1.3 2018/09/15 16:41:37 jmcneill Exp $      */
 
 /*
  * Copyright (c) 1996, 1997
@@ -90,8 +90,7 @@
                        }
                }
                if (ischar()) {
-                       while (ischar())
-                               c = getchar();
+                       c = getchar();
                        if (c == 0)
                                c = -1;
                        goto out;



Home | Main Index | Thread Index | Old Index