Changeset 0016674 in mainline for uspace/lib/c/generic/ipc.c


Ignore:
Timestamp:
2017-12-09T18:04:23Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0722869
Parents:
569a51a
Message:

Properly handle errors in SYS_IPC_KBOX.

Also, merge the separate 32/64-bit versions.
There is no reason to optimize such a function this way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ipc.c

    r569a51a r0016674  
    379379int ipc_connect_kbox(task_id_t id, cap_handle_t *phone)
    380380{
    381 #ifdef __32_BITS__
    382         sysarg64_t arg = (sysarg64_t) id;
    383         return __SYSCALL2(SYS_IPC_CONNECT_KBOX, (sysarg_t) &arg, (sysarg_t) phone);
    384 #endif
    385 #ifdef __64_BITS__
    386         return __SYSCALL2(SYS_IPC_CONNECT_KBOX, (sysarg_t) id, (sysarg_t) phone);
    387 #endif
     381        return __SYSCALL2(SYS_IPC_CONNECT_KBOX, (sysarg_t) &id, (sysarg_t) phone);
    388382}
    389383
Note: See TracChangeset for help on using the changeset viewer.