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

index 953a705..10d0252 100644 (file)
 
 int main(void)
 {
-  const struct syslinux_serial_console_info *si;
+    const struct syslinux_serial_console_info *si;
 
-  openconsole(&dev_null_r, &dev_stdcon_w);
+    openconsole(&dev_null_r, &dev_stdcon_w);
 
-  si = syslinux_serial_console_info();
+    si = syslinux_serial_console_info();
 
-  printf("Serial port base:    %#06x\n", si->iobase);
-  printf("Serial port divisor:  %5d", si->divisor);
-  if (si->divisor)
-    printf(" (%d baud)", 115200/si->divisor);
-  printf("\n"
-        "Flow control bits:    %#05x\n", si->flowctl);
+    printf("Serial port base:    %#06x\n", si->iobase);
+    printf("Serial port divisor:  %5d", si->divisor);
+    if (si->divisor)
+       printf(" (%d baud)", 115200 / si->divisor);
+    printf("\n" "Flow control bits:    %#05x\n", si->flowctl);
 
-  return 0;
+    return 0;
 }