Run Nindent on com32/menu/drain.c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:27 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:27 +0000 (15:10 -0700)
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>
com32/menu/drain.c

index ace0451..60efd35 100644 (file)
@@ -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();
 }