Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/concttome.c

    r6769005 rfafb8e5  
    4949                 * Set the sender-assigned label to the new phone.
    5050                 */
    51                 pobj->phone->label = IPC_GET_ARG5(call->data);
     51                pobj->phone->label = ipc_get_arg5(&call->data);
    5252        }
    5353        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));
    5555        return 0;
    5656}
     
    5858static errno_t answer_cleanup(call_t *answer, ipc_data_t *olddata)
    5959{
    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);
    6161        kobject_t *pobj = (kobject_t *) answer->priv;
    6262
    63         if (CAP_HANDLE_VALID(phandle)) {
     63        if (cap_handle_valid(phandle)) {
    6464                kobject_put(pobj);
    6565                cap_free(TASK, phandle);
     
    7171static errno_t answer_preprocess(call_t *answer, ipc_data_t *olddata)
    7272{
    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);
    7474        kobject_t *pobj = (kobject_t *) answer->priv;
    7575
    76         if (IPC_GET_RETVAL(answer->data) != EOK) {
     76        if (ipc_get_retval(&answer->data) != EOK) {
    7777                /* The connection was not accepted */
    7878                answer_cleanup(answer, olddata);
    79         } else if (CAP_HANDLE_VALID(phandle)) {
     79        } else if (cap_handle_valid(phandle)) {
    8080                /*
    8181                 * The connection was accepted
     
    9494                } else {
    9595                        /* The answerbox is shutting down. */
    96                         IPC_SET_RETVAL(answer->data, ENOENT);
     96                        ipc_set_retval(&answer->data, ENOENT);
    9797                        answer_cleanup(answer, olddata);
    9898                }
    9999        } else {
    100                 IPC_SET_RETVAL(answer->data, ELIMIT);
     100                ipc_set_retval(&answer->data, ELIMIT);
    101101        }
    102102
Note: See TracChangeset for help on using the changeset viewer.