Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/clonable.c

    r7b616e2 r566992e1  
    3131 */
    3232
    33 #include <async.h>
     33#include <ipc/ipc.h>
    3434#include <ipc/services.h>
    3535#include <adt/list.h>
     
    8181                /* There was no pending connection request. */
    8282                printf("%s: Unexpected clonable server.\n", NAME);
    83                 async_answer_0(callid, EBUSY);
     83                ipc_answer_0(callid, EBUSY);
    8484                return;
    8585        }
     
    9191        assert(csr->service == SERVICE_LOADER);
    9292       
    93         async_answer_0(callid, EOK);
     93        ipc_answer_0(callid, EOK);
    9494       
    95         async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
    96         if (sess == NULL)
    97                 async_answer_0(callid, EIO);
    98        
    99         async_exch_t *exch = async_exchange_begin(sess);
    100         async_forward_fast(csr->callid, exch, csr->iface, csr->arg3, 0,
     95        ipc_forward_fast(csr->callid, phone, csr->iface, csr->arg3, 0,
    10196            IPC_FF_NONE);
    102         async_exchange_end(exch);
    10397       
    10498        free(csr);
    105         async_hangup(sess);
     99        ipc_hangup(phone);
    106100}
    107101
     
    123117        cs_req_t *csr = malloc(sizeof(cs_req_t));
    124118        if (csr == NULL) {
    125                 async_answer_0(callid, ENOMEM);
     119                ipc_answer_0(callid, ENOMEM);
    126120                return;
    127121        }
     
    132126        if (rc < 0) {
    133127                free(csr);
    134                 async_answer_0(callid, rc);
     128                ipc_answer_0(callid, rc);
    135129                return;
    136130        }
Note: See TracChangeset for help on using the changeset viewer.