Changeset 25a179e in mainline for uspace/lib/hound/src/protocol.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (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:
f96b6c8
Parents:
d4a829e
Message:

IPC return values are always errno constants. Adjust types to reflect that.

In principle, IPC server is not allowed to return non-errno values via
the "main" return value, because kernel interprets it (e.g. EHANGUP).
It's still possible to return arbitrary additional return values alongside EOK,
which are not interpreted in normal communication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/protocol.c

    rd4a829e r25a179e  
    129129        aid_t mid =
    130130            async_send_1(exch, IPC_M_HOUND_CONTEXT_REGISTER, record, &call);
    131         sysarg_t ret = mid ? EOK : EPARTY;
     131        int ret = mid ? EOK : EPARTY;
    132132
    133133        if (ret == EOK)
     
    191191            connection != NULL, &res_call);
    192192
    193         sysarg_t ret = EOK;
     193        int ret = EOK;
    194194        if (mid && connection)
    195195                ret = async_data_write_start(exch, connection,
     
    259259        ipc_call_t call;
    260260        aid_t id = async_send_0(exch, IPC_M_HOUND_CONNECT, &call);
    261         sysarg_t ret = id ? EOK : EPARTY;
     261        int ret = id ? EOK : EPARTY;
    262262        if (ret == EOK)
    263263                ret = async_data_write_start(exch, source, str_size(source));
     
    285285        ipc_call_t call;
    286286        aid_t id = async_send_0(exch, IPC_M_HOUND_DISCONNECT, &call);
    287         sysarg_t ret = id ? EOK : EPARTY;
     287        int ret = id ? EOK : EPARTY;
    288288        if (ret == EOK)
    289289                ret = async_data_write_start(exch, source, str_size(source));
Note: See TracChangeset for help on using the changeset viewer.