Changes in kernel/generic/src/ipc/ops/conctmeto.c [b7fd2a0:48bcf49] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
rb7fd2a0 r48bcf49 40 40 #include <arch.h> 41 41 42 static errno_t request_preprocess(call_t *call, phone_t *phone)42 static int request_preprocess(call_t *call, phone_t *phone) 43 43 { 44 cap_handle_t phone_handle; 45 errno_t rc = phone_alloc(TASK, &phone_handle); 44 cap_handle_t phone_handle = phone_alloc(TASK); 46 45 47 /* Remember the phone capability or that an error occured. */ 48 call->priv = (rc == EOK) ? phone_handle : -1; 49 50 if (rc != EOK) { 51 return rc; 52 } 46 /* Remember the phone capability or the error. */ 47 call->priv = phone_handle; 48 if (phone_handle < 0) 49 return phone_handle; 53 50 54 51 /* Set arg5 for server */ … … 61 58 } 62 59 63 static errno_t request_forget(call_t *call)60 static int request_forget(call_t *call) 64 61 { 65 62 cap_handle_t phone_handle = (cap_handle_t) call->priv; 66 67 if (phone_handle < 0) {68 return EOK;69 }70 71 63 phone_dealloc(phone_handle); 72 64 /* Hand over reference from ARG5 to phone->kobject */ … … 77 69 } 78 70 79 static errno_t answer_preprocess(call_t *answer, ipc_data_t *olddata)71 static int answer_preprocess(call_t *answer, ipc_data_t *olddata) 80 72 { 81 73 /* Hand over reference from ARG5 to phone */ … … 93 85 } 94 86 95 static errno_t answer_process(call_t *answer)87 static int answer_process(call_t *answer) 96 88 { 97 89 cap_handle_t phone_handle = (cap_handle_t) answer->priv;
Note:
See TracChangeset
for help on using the changeset viewer.