diff options
author | Miles Bader <miles@gnu.org> | 1996-05-15 21:22:40 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-15 21:22:40 +0000 |
commit | 58712847cdd857eff0053319dd67ec91845b63d6 (patch) | |
tree | 7974a380453a38c80b8e559f92c705e5a1363ae0 | |
parent | 616cbadddbae33dfb51378892bb7f39786b6a422 (diff) |
(store_create): Steal SOURCE instead of cloning it.
-rw-r--r-- | libstore/create.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libstore/create.c b/libstore/create.c index 5e681859..f912dab7 100644 --- a/libstore/create.c +++ b/libstore/create.c @@ -24,16 +24,6 @@ #include "store.h" -static error_t -fgsi (file_t source, - mach_port_t **ports, mach_msg_type_number_t *num_ports, - int **ints, mach_msg_type_number_t *num_ints, - off_t **offsets, mach_msg_type_number_t *num_offsets, - char **data, mach_msg_type_number_t *num_data) -{ - return EOPNOTSUPP; -} - /* Return a new store in STORE, which refers to the storage underlying SOURCE. A reference to SOURCE is created (but may be destroyed with store_close_source). */ @@ -49,7 +39,6 @@ error_t store_create (file_t source, struct store **store) store_enc_init (&enc, inline_ports, 10, inline_ints, 60, inline_offsets, 60, inline_data, 100); -#define file_get_storage_info fgsi /* XXX */ err = file_get_storage_info (source, &enc.ports, &enc.num_ports, &enc.ints, &enc.num_ints, @@ -64,10 +53,7 @@ error_t store_create (file_t source, struct store **store) if (! err) /* Keep a reference to SOURCE around. */ - { - mach_port_mod_refs (mach_task_self (), source, MACH_PORT_RIGHT_SEND, 1); - (*store)->source = source; - } + (*store)->source = source; return err; } |