summaryrefslogtreecommitdiff
path: root/com32/lib/sys/openconsole.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:25 -0700
commitb6f4945e7e327f340fc88f5ab1745dff53f8f2a1 (patch)
treec763dd27dec74a7bd2de0ae0c1c7fe146e9ae463 /com32/lib/sys/openconsole.c
parent27fb3fb5d4f398dd2e27e90570390d10f8e1ca68 (diff)
downloadsyslinux-b6f4945e7e327f340fc88f5ab1745dff53f8f2a1.tar.gz
Run Nindent on com32/lib/sys/openconsole.c
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>
Diffstat (limited to 'com32/lib/sys/openconsole.c')
-rw-r--r--com32/lib/sys/openconsole.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/com32/lib/sys/openconsole.c b/com32/lib/sys/openconsole.c
index c0416e25..3c7567b6 100644
--- a/com32/lib/sys/openconsole.c
+++ b/com32/lib/sys/openconsole.c
@@ -37,15 +37,15 @@
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;
}