summaryrefslogtreecommitdiff
path: root/com32/menu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:27 -0700
commit08d86ec4062eff21da4feab67a365bc88ac13eda (patch)
tree02fe05a8c7efa21918c8d8b4a74e3a107b945f20 /com32/menu
parent9dbbd361ce735e7d647bc438849eb05fe4728894 (diff)
downloadsyslinux-08d86ec4062eff21da4feab67a365bc88ac13eda.tar.gz
Run Nindent on com32/menu/drain.c
Automatically reformat com32/menu/drain.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/drain.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/com32/menu/drain.c b/com32/menu/drain.c
index ace04518..60efd357 100644
--- a/com32/menu/drain.c
+++ b/com32/menu/drain.c
@@ -6,20 +6,20 @@
void drain_keyboard(void)
{
- /* Prevent "ghost typing" and keyboard buffer snooping */
- volatile char junk;
- int rv;
+ /* Prevent "ghost typing" and keyboard buffer snooping */
+ volatile char junk;
+ int rv;
- do {
- rv = read(0, (char *)&junk, 1);
- } while (rv > 0);
+ do {
+ rv = read(0, (char *)&junk, 1);
+ } while (rv > 0);
- junk = 0;
+ junk = 0;
- cli();
- *(volatile uint8_t *)0x419 = 0; /* Alt-XXX keyboard area */
- *(volatile uint16_t *)0x41a = 0x1e; /* Keyboard buffer empty */
- *(volatile uint16_t *)0x41c = 0x1e;
- memset((void *)0x41e, 0, 32); /* Clear the actual keyboard buffer */
- sti();
+ cli();
+ *(volatile uint8_t *)0x419 = 0; /* Alt-XXX keyboard area */
+ *(volatile uint16_t *)0x41a = 0x1e; /* Keyboard buffer empty */
+ *(volatile uint16_t *)0x41c = 0x1e;
+ memset((void *)0x41e, 0, 32); /* Clear the actual keyboard buffer */
+ sti();
}