Ignore:
File:
1 edited

Legend:

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

    r334c103 readaeae8  
    4646         * That will be done once the phone is connected.
    4747         */
    48         cap_handle_t phone_handle;
     48        cap_phone_handle_t phone_handle;
    4949        kobject_t *phone_obj;
    5050        errno_t rc = phone_alloc(TASK, false, &phone_handle, &phone_obj);
     
    5858
    5959        /* Remember the handle */
    60         call->priv = phone_handle;
     60        call->priv = CAP_HANDLE_RAW(phone_handle);
    6161
    6262        return EOK;
     
    6565static errno_t request_forget(call_t *call)
    6666{
    67         cap_handle_t phone_handle = (cap_handle_t) call->priv;
     67        cap_phone_handle_t phone_handle = (cap_handle_t) call->priv;
    6868
    69         if (phone_handle < 0)
     69        if (CAP_HANDLE_RAW(phone_handle) < 0)
    7070                return EOK;
    7171
     
    103103static errno_t answer_process(call_t *answer)
    104104{
    105         cap_handle_t phone_handle = (cap_handle_t) answer->priv;
     105        cap_phone_handle_t phone_handle = (cap_handle_t) answer->priv;
    106106        phone_t *phone = (phone_t *) IPC_GET_ARG5(answer->data);
    107107
    108108        if (IPC_GET_RETVAL(answer->data)) {
    109                 if (phone_handle >= 0) {
     109                if (CAP_HANDLE_RAW(phone_handle) >= 0) {
    110110                        /*
    111111                         * Cleanup the unpublished capability and drop
     
    123123                cap_publish(TASK, phone_handle, phone->kobject);
    124124
    125                 IPC_SET_ARG5(answer->data, phone_handle);
     125                IPC_SET_ARG5(answer->data, CAP_HANDLE_RAW(phone_handle));
    126126        }
    127127
Note: See TracChangeset for help on using the changeset viewer.