aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/read.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
commit81e060fdf3d23d95ddc7072bb2695689a85a3550 (patch)
treecefb0878236e3288d589327f9bbc370d5500b903 /com32/lib/sys/read.c
parent0b83cee95490d02f8ff23924d04fabb03a5b4a2c (diff)
downloadsyslinux-81e060fdf3d23d95ddc7072bb2695689a85a3550.tar.gz
syslinux-81e060fdf3d23d95ddc7072bb2695689a85a3550.tar.xz
syslinux-81e060fdf3d23d95ddc7072bb2695689a85a3550.zip
Run Nindent on com32/lib/sys/read.c
Automatically reformat com32/lib/sys/read.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/read.c')
-rw-r--r--com32/lib/sys/read.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/com32/lib/sys/read.c b/com32/lib/sys/read.c
index 316ee00c..e097ade1 100644
--- a/com32/lib/sys/read.c
+++ b/com32/lib/sys/read.c
@@ -40,12 +40,12 @@
ssize_t read(int fd, void *buf, size_t count)
{
- struct file_info *fp = &__file_info[fd];
+ struct file_info *fp = &__file_info[fd];
- if ( fd >= NFILES || !fp->iop ) {
- errno = EBADF;
- return -1;
- }
+ if (fd >= NFILES || !fp->iop) {
+ errno = EBADF;
+ return -1;
+ }
- return fp->iop->read(fp, buf, count);
+ return fp->iop->read(fp, buf, count);
}