aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/read.c
diff options
context:
space:
mode:
authorhpa <hpa>2005-09-25 21:35:44 +0000
committerhpa <hpa>2005-09-25 21:35:44 +0000
commit85ab9fe14674567260cf94ecd4dc845f1988a08b (patch)
treee241d2eaf71df6dd6b7c268ff047781dfe6b9f7a /com32/lib/sys/read.c
parent77477d3af776cbc8ffce61cb63ae7a27dbe0a941 (diff)
downloadsyslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.tar.gz
syslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.tar.xz
syslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.zip
Beginnings of a file-moving API
Diffstat (limited to 'com32/lib/sys/read.c')
-rw-r--r--com32/lib/sys/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/read.c b/com32/lib/sys/read.c
index e461cd46..4f96aad7 100644
--- a/com32/lib/sys/read.c
+++ b/com32/lib/sys/read.c
@@ -42,8 +42,8 @@
ssize_t read(int fd, void *buf, size_t count)
{
struct file_info *fp = &__file_info[fd];
-
- if ( fd >= NFILES || !fp->iop ) {
+
+ if ( fd >= NFILES || !fp->iop ) {
errno = EBADF;
return -1;
}