Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/il/il_skel.c

    r6b82009 r79ae36dd  
    3838#include <bool.h>
    3939#include <errno.h>
    40 #include <ns.h>
    4140#include <il_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.
     
    4951 *
    5052 */
    51 static void il_client_connection(ipc_callid_t iid, ipc_call_t *icall,
    52     void *arg)
     53static void il_client_connection(ipc_callid_t iid, ipc_call_t *icall)
    5354{
    5455        /*
     
    9798 * @return Other error codes as defined for the il_initialize()
    9899 *         function.
     100 * @return Other error codes as defined for the REGISTER_ME() macro
     101 *         function.
    99102 *
    100103 */
    101 int il_module_start(sysarg_t service)
     104int il_module_start(int service)
    102105{
    103106        async_set_client_connection(il_client_connection);
    104         async_sess_t *sess = net_connect_module();
    105         if (!sess)
    106                 return ENOENT;
     107        int net_phone = net_connect_module();
     108        if (net_phone < 0)
     109                return net_phone;
    107110       
    108111        int rc = pm_init();
     
    110113                return rc;
    111114       
    112         rc = il_initialize(sess);
     115        rc = il_initialize(net_phone);
    113116        if (rc != EOK)
    114117                goto out;
    115118       
    116         rc = service_register(service);
     119        rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);
    117120        if (rc != EOK)
    118121                goto out;
Note: See TracChangeset for help on using the changeset viewer.