Changes in kernel/generic/src/ipc/ops/concttome.c [6769005:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/concttome.c
r6769005 rfafb8e5 49 49 * Set the sender-assigned label to the new phone. 50 50 */ 51 pobj->phone->label = IPC_GET_ARG5(call->data);51 pobj->phone->label = ipc_get_arg5(&call->data); 52 52 } 53 53 call->priv = (sysarg_t) pobj; 54 IPC_SET_ARG5(call->data, CAP_HANDLE_RAW(phandle));54 ipc_set_arg5(&call->data, cap_handle_raw(phandle)); 55 55 return 0; 56 56 } … … 58 58 static errno_t answer_cleanup(call_t *answer, ipc_data_t *olddata) 59 59 { 60 cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(*olddata);60 cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(olddata); 61 61 kobject_t *pobj = (kobject_t *) answer->priv; 62 62 63 if ( CAP_HANDLE_VALID(phandle)) {63 if (cap_handle_valid(phandle)) { 64 64 kobject_put(pobj); 65 65 cap_free(TASK, phandle); … … 71 71 static errno_t answer_preprocess(call_t *answer, ipc_data_t *olddata) 72 72 { 73 cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(*olddata);73 cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(olddata); 74 74 kobject_t *pobj = (kobject_t *) answer->priv; 75 75 76 if ( IPC_GET_RETVAL(answer->data) != EOK) {76 if (ipc_get_retval(&answer->data) != EOK) { 77 77 /* The connection was not accepted */ 78 78 answer_cleanup(answer, olddata); 79 } else if ( CAP_HANDLE_VALID(phandle)) {79 } else if (cap_handle_valid(phandle)) { 80 80 /* 81 81 * The connection was accepted … … 94 94 } else { 95 95 /* The answerbox is shutting down. */ 96 IPC_SET_RETVAL(answer->data, ENOENT);96 ipc_set_retval(&answer->data, ENOENT); 97 97 answer_cleanup(answer, olddata); 98 98 } 99 99 } else { 100 IPC_SET_RETVAL(answer->data, ELIMIT);100 ipc_set_retval(&answer->data, ELIMIT); 101 101 } 102 102
Note:
See TracChangeset
for help on using the changeset viewer.