Ignore:
File:
1 edited

Legend:

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

    r79ae36dd r6b82009  
    3838#include <bool.h>
    3939#include <errno.h>
     40#include <ns.h>
    4041#include <nil_skel.h>
    4142#include <net_interface.h>
    4243#include <net/modules.h>
    43 
    44 // FIXME: remove this header
    45 #include <kernel/ipc/ipc_methods.h>
    4644
    4745/** Default thread for new connections.
     
    5149 *
    5250 */
    53 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall)
     51static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall,
     52    void *arg)
    5453{
    5554        /*
     
    9897 * @return Other error codes as defined for the nil_initialize()
    9998 *         function.
    100  * @return Other error codes as defined for the REGISTER_ME() macro
    101  *         function.
    10299 *
    103100 */
    104 int nil_module_start(int service)
     101int nil_module_start(sysarg_t service)
    105102{
    106103        async_set_client_connection(nil_client_connection);
    107         int net_phone = net_connect_module();
    108         if (net_phone < 0)
    109                 return net_phone;
     104        async_sess_t *sess = net_connect_module();
     105        if (!sess)
     106                return ENOENT;
    110107       
    111108        int rc = pm_init();
     
    113110                return rc;
    114111       
    115         rc = nil_initialize(net_phone);
     112        rc = nil_initialize(sess);
    116113        if (rc != EOK)
    117114                goto out;
    118115       
    119         rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);
     116        rc = service_register(service);
    120117        if (rc != EOK)
    121118                goto out;
Note: See TracChangeset for help on using the changeset viewer.