Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/modules.c

    r16ac756 rc7a8442  
    4141#include <async.h>
    4242#include <malloc.h>
    43 #include <errno.h>
     43#include <err.h>
    4444#include <sys/time.h>
    4545
     
    137137    ipcarg_t arg3, async_client_conn_t client_receiver, suseconds_t timeout)
    138138{
    139         int rc;
     139        ERROR_DECLARE;
    140140       
    141141        /* Connect to the needed service */
     
    144144                /* Request the bidirectional connection */
    145145                ipcarg_t phonehash;
    146                
    147                 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, &phonehash);
    148                 if (rc != EOK) {
     146                if (ERROR_OCCURRED(ipc_connect_to_me(phone, arg1, arg2, arg3,
     147                    &phonehash))) {
    149148                        ipc_hangup(phone);
    150                         return rc;
     149                        return ERROR_CODE;
    151150                }
    152151                async_new_connection(phonehash, 0, NULL, client_receiver);
     
    213212int data_receive(void **data, size_t *length)
    214213{
     214        ERROR_DECLARE;
     215
    215216        ipc_callid_t callid;
    216         int rc;
    217217
    218218        if (!data || !length)
     
    229229
    230230        // fetch the data
    231         rc = async_data_write_finalize(callid, *data, *length);
    232         if (rc != EOK) {
     231        if (ERROR_OCCURRED(async_data_write_finalize(callid, *data, *length))) {
    233232                free(data);
    234                 return rc;
     233                return ERROR_CODE;
    235234        }
    236235
Note: See TracChangeset for help on using the changeset viewer.