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

index bf54805..1400e42 100644 (file)
 
 int putchar(int ch)
 {
-  if ( ch == '\n' )
-    putchar('\r');
-  asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch));
-  return ch;
+    if (ch == '\n')
+       putchar('\r');
+asm("movb $0x02,%%ah ; int $0x21": :"d"(ch));
+    return ch;
 }
 
 /* Note: doesn't put '\n' like the stdc version does */
 int puts(const char *s)
 {
-  int count = 0;
+    int count = 0;
 
-  while ( *s ) {
-    putchar(*s);
-    count++;
-    s++;
-  }
+    while (*s) {
+       putchar(*s);
+       count++;
+       s++;
+    }
 
-  return count;
+    return count;
 }