Module Name:    src
Committed By:   jmcneill
Date:           Sat Sep 15 16:41:37 UTC 2018

Modified Files:
        src/sys/stand/efiboot: prompt.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/stand/efiboot/prompt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/stand/efiboot/prompt.c
diff -u src/sys/stand/efiboot/prompt.c:1.2 src/sys/stand/efiboot/prompt.c:1.3
--- src/sys/stand/efiboot/prompt.c:1.2	Fri Aug 24 20:55:20 2018
+++ src/sys/stand/efiboot/prompt.c	Sat Sep 15 16:41:37 2018
@@ -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 @@ awaitkey(int timeout, int tell)
 			}
 		}
 		if (ischar()) {
-			while (ischar())
-				c = getchar();
+			c = getchar();
 			if (c == 0)
 				c = -1;
 			goto out;

Reply via email to