summaryrefslogtreecommitdiff
path: root/storeio/io.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-01-28 16:37:59 +0000
committerRoland McGrath <roland@gnu.org>1999-01-28 16:37:59 +0000
commitca51c73a5b4f644a8a940fcc187a9dbb3e1b1f78 (patch)
tree1d54e392d32c22a466fe8586b9c3fe373b34741f /storeio/io.c
parentec80240b0b0f26c0c3cc0abd74e49da9fd96be99 (diff)
1999-01-28 Roland McGrath <roland@baalperazim.frob.com>
* io.c (trivfs_S_file_syncfs): Fix inverted test. Reported by OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>.
Diffstat (limited to 'storeio/io.c')
-rw-r--r--storeio/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/storeio/io.c b/storeio/io.c
index 45b534c0..f3a6a732 100644
--- a/storeio/io.c
+++ b/storeio/io.c
@@ -1,6 +1,6 @@
/* The hurd io interface to storeio
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -177,7 +177,7 @@ trivfs_S_file_set_size (struct trivfs_protid *cred,
/* These four routines modify the O_APPEND, O_ASYNC, O_FSYNC, and
O_NONBLOCK bits for the IO object. In addition, io_get_openmodes
will tell you which of O_READ, O_WRITE, and O_EXEC the object can
- be used for. The O_ASYNC bit affects icky async I/O; good async
+ be used for. The O_ASYNC bit affects icky async I/O; good async
I/O is done through io_async which is orthogonal to these calls. */
error_t
@@ -286,7 +286,7 @@ trivfs_S_file_syncfs (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int wait, int dochildren)
{
- if (! cred)
+ if (cred)
return dev_sync (((struct open *)cred->po->hook)->dev, wait);
else
return EOPNOTSUPP;
@@ -336,5 +336,5 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred,
offsets, num_offsets, data, data_len);
return err;
- }
+ }
}