summaryrefslogtreecommitdiff
path: root/storeio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-14 17:32:30 +0000
committerMiles Bader <miles@gnu.org>1996-09-14 17:32:30 +0000
commit2ce1e0faea696b4765a7cccf7f9d2b93c3e11dc5 (patch)
tree79b253aef45064e338169c970943a603e140c94e /storeio
parent67af0339a48b8e02d1d1341ced524f202df17b6b (diff)
(trivfs_S_file_get_storage_info): Use store_return.
Diffstat (limited to 'storeio')
-rw-r--r--storeio/io.c27
1 files changed, 5 insertions, 22 deletions
diff --git a/storeio/io.c b/storeio/io.c
index f8067698..67d43c41 100644
--- a/storeio/io.c
+++ b/storeio/io.c
@@ -301,29 +301,12 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred,
mach_msg_type_number_t *num_offsets,
char **data, mach_msg_type_number_t *data_len)
{
- error_t err = 0;
- struct store_enc enc;
+ *ports_type = MACH_MSG_TYPE_COPY_SEND;
if (! cred)
return EOPNOTSUPP;
-
- store_enc_init (&enc, *ports, *num_ports, *ints, *num_ints,
- *offsets, *num_offsets, *data, *data_len);
-
- err = store_encode (((struct open *)cred->po->hook)->dev->store, &enc);
- if (! err)
- {
- *ports = enc.ports;
- *num_ports = enc.num_ports;
- *ints = enc.ints;
- *num_ints = enc.num_ints;
- *offsets = enc.offsets;
- *num_offsets = enc.num_offsets;
- *data = enc.data;
- *data_len = enc.data_len;
-
- *ports_type = MACH_MSG_TYPE_COPY_SEND;
- }
-
- return err;
+ else
+ return store_return (((struct open *)cred->po->hook)->dev->store,
+ ports, num_ports, ints, num_ints,
+ offsets, num_offsets, data, data_len);
}