Ignore:
File:
1 edited

Legend:

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

    r6b82009 r9934f7d  
    3838#include <bool.h>
    3939#include <errno.h>
    40 #include <ns.h>
    4140#include <nil_skel.h>
    4241#include <net_interface.h>
    4342#include <net/modules.h>
     43
     44// FIXME: remove this header
     45#include <kernel/ipc/ipc_methods.h>
    4446
    4547/** Default thread for new connections.
     
    9799 * @return Other error codes as defined for the nil_initialize()
    98100 *         function.
     101 * @return Other error codes as defined for the REGISTER_ME() macro
     102 *         function.
    99103 *
    100104 */
    101 int nil_module_start(sysarg_t service)
     105int nil_module_start(int service)
    102106{
    103107        async_set_client_connection(nil_client_connection);
    104         async_sess_t *sess = net_connect_module();
    105         if (!sess)
    106                 return ENOENT;
     108        int net_phone = net_connect_module();
     109        if (net_phone < 0)
     110                return net_phone;
    107111       
    108112        int rc = pm_init();
     
    110114                return rc;
    111115       
    112         rc = nil_initialize(sess);
     116        rc = nil_initialize(net_phone);
    113117        if (rc != EOK)
    114118                goto out;
    115119       
    116         rc = service_register(service);
     120        rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);
    117121        if (rc != EOK)
    118122                goto out;
Note: See TracChangeset for help on using the changeset viewer.