Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/nil/nil_skel.c

    r6b82009 rffa2c8ef  
    3838#include <bool.h>
    3939#include <errno.h>
    40 #include <ns.h>
    4140#include <nil_skel.h>
    4241#include <net_interface.h>
     
    4948 *
    5049 */
    51 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall,
    52     void *arg)
     50static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall)
    5351{
    5452        /*
     
    7775                 * result.
    7876                 */
    79                 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP))
     77                if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) ||
     78                    (res == EHANGUP))
    8079                        return;
    8180               
     
    9796 * @return Other error codes as defined for the nil_initialize()
    9897 *         function.
     98 * @return Other error codes as defined for the REGISTER_ME() macro
     99 *         function.
    99100 *
    100101 */
    101 int nil_module_start(sysarg_t service)
     102int nil_module_start(int service)
    102103{
    103104        async_set_client_connection(nil_client_connection);
    104         async_sess_t *sess = net_connect_module();
    105         if (!sess)
    106                 return ENOENT;
     105        int net_phone = net_connect_module();
     106        if (net_phone < 0)
     107                return net_phone;
    107108       
    108109        int rc = pm_init();
     
    110111                return rc;
    111112       
    112         rc = nil_initialize(sess);
     113        rc = nil_initialize(net_phone);
    113114        if (rc != EOK)
    114115                goto out;
    115116       
    116         rc = service_register(service);
     117        rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);
    117118        if (rc != EOK)
    118119                goto out;
Note: See TracChangeset for help on using the changeset viewer.