diff options
author | Miles Bader <miles@gnu.org> | 1996-04-02 22:07:15 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-04-02 22:07:15 +0000 |
commit | 24a35b887a3bd5d552e8bde198d9189a9a3b5a70 (patch) | |
tree | a4843e625fbde7afa761e406c5d4a050fd74576a /libstore | |
parent | 126a7300e70cecddc97ceefc56b0077ee5f098b4 (diff) |
entered into RCS
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/encode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstore/encode.c b/libstore/encode.c index 573ca099..9a54d502 100644 --- a/libstore/encode.c +++ b/libstore/encode.c @@ -42,6 +42,7 @@ store_default_leaf_allocate_encoding (struct store *store, error_t store_default_leaf_encode (struct store *store, struct store_enc *enc) { + int i; size_t name_len = (store->name ? strlen (store->name) + 1 : 0); enc->ports[enc->cur_port++] = store->port; @@ -87,7 +88,7 @@ store_encode (const struct store *store, struct store_enc *enc) mach_msg_type_number_t init_offsets_len = enc->offsets_len; mach_msg_type_number_t init_data_len = enc->data_len; - if (!meths->allocate_encoding || !meths->encoding) + if (!meths->allocate_encoding || !meths->encode) return EOPNOTSUPP; enc->ports_len = 0; |