1.1 --- a/dstest_test_client.cc Thu Mar 04 23:50:40 2021 +0100
1.2 +++ b/dstest_test_client.cc Sun Mar 07 23:05:04 2021 +0100
1.3 @@ -50,7 +50,7 @@
1.4
1.5 /* An activity opening and reading from a file. */
1.6
1.7 -static long activity(l4_cap_idx_t context_ref, unsigned long fileid, unsigned int start_page)
1.8 +static long activity(file_t *context, unsigned long fileid, unsigned int start_page)
1.9 {
1.10 unsigned long step = page(1);
1.11 unsigned long sample = page(1);
1.12 @@ -63,7 +63,7 @@
1.13
1.14 file_t file;
1.15
1.16 - long err = file_open(&file, context_ref);
1.17 + long err = file_open(&file, context);
1.18
1.19 if (err)
1.20 {
1.21 @@ -118,7 +118,7 @@
1.22
1.23
1.24
1.25 -static long activity_iterate(file_t *file, unsigned long fileid, unsigned int start_page)
1.26 +static long activity_iterate(file_t *context, unsigned long fileid, unsigned int start_page)
1.27 {
1.28 long err;
1.29
1.30 @@ -126,7 +126,7 @@
1.31
1.32 for (unsigned int iteration = 0; iteration < ACTIVITY_ITERATIONS; iteration++)
1.33 {
1.34 - err = activity(file->ref, fileid, start_page);
1.35 + err = activity(context, fileid, start_page);
1.36 if (err)
1.37 break;
1.38 }