From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:27 +0000 (-0700) Subject: Run Nindent on com32/menu/drain.c X-Git-Tag: syslinux-3.83-pre2~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08d86ec4062eff21da4feab67a365bc88ac13eda;p=profile%2Fivi%2Fsyslinux.git 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 --- diff --git a/com32/menu/drain.c b/com32/menu/drain.c index ace0451..60efd35 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(); }