Changeset a46e56b in mainline for uspace/lib/usbvirt/src/device.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/src/device.c

    r3e242d2 ra46e56b  
    5454 * @param arg   Local argument
    5555 */
    56 static void callback_connection(cap_call_handle_t iid, ipc_call_t *icall, void *arg)
     56static void callback_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
    5757{
    5858        assert(DEV != NULL);
    5959
    60         async_answer_0(iid, EOK);
     60        async_answer_0(icall_handle, EOK);
    6161
    6262        while (true) {
    63                 cap_call_handle_t callid;
     63                cap_call_handle_t chandle;
    6464                ipc_call_t call;
    6565
    66                 callid = async_get_call(&call);
    67                 bool processed = usbvirt_ipc_handle_call(DEV, callid, &call);
     66                chandle = async_get_call(&call);
     67                bool processed = usbvirt_ipc_handle_call(DEV, chandle, &call);
    6868                if (!processed) {
    6969                        if (!IPC_GET_IMETHOD(call)) {
    70                                 async_answer_0(callid, EOK);
     70                                async_answer_0(chandle, EOK);
    7171                                return;
    7272                        } else
    73                                 async_answer_0(callid, EINVAL);
     73                                async_answer_0(chandle, EINVAL);
    7474                }
    7575        }
Note: See TracChangeset for help on using the changeset viewer.