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

index c0416e2..3c7567b 100644 (file)
 
 int openconsole(const struct input_dev *idev, const struct output_dev *odev)
 {
-  close(0);
-  if ( opendev(idev, odev, O_RDONLY) != 0 )
-    return -1;
-  close(1);
-  if ( opendev(idev, odev, O_WRONLY) != 1 )
-    return -1;
-  close(2);
-  if ( opendev(idev, odev, O_WRONLY) != 2 )
-    return -1;
+    close(0);
+    if (opendev(idev, odev, O_RDONLY) != 0)
+       return -1;
+    close(1);
+    if (opendev(idev, odev, O_WRONLY) != 1)
+       return -1;
+    close(2);
+    if (opendev(idev, odev, O_WRONLY) != 2)
+       return -1;
 
-  return 0;
+    return 0;
 }