1.1 --- a/file.cc Thu Mar 04 23:50:40 2021 +0100
1.2 +++ b/file.cc Sun Mar 07 23:05:04 2021 +0100
1.3 @@ -89,13 +89,13 @@
1.4 return ipc_attach_dataspace(file->ref, file->end_pos - file->start_pos, (void **) &file->memory);
1.5 }
1.6
1.7 -/* Open a file using the given structure and context reference. */
1.8 +/* Open a file using the given structure and context. */
1.9
1.10 -long file_open(file_t *file, l4_cap_idx_t context_ref)
1.11 +long file_open(file_t *file, file_t *context)
1.12 {
1.13 - client_OpenerContext context(context_ref);
1.14 + client_OpenerContext openercontext(context->ref);
1.15 file_init(file);
1.16 - return context.open(L4_FPAGE_RW, &file->size, &file->ref);
1.17 + return openercontext.open(L4_FPAGE_RW, &file->size, &file->ref);
1.18 }
1.19
1.20 /* Return the amount of data in the mapped region for the given file. */