Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/tl/tl_skel.c

    r6b82009 r9934f7d  
    3838#include <bool.h>
    3939#include <errno.h>
    40 #include <ns.h>
    4140#include <tl_skel.h>
    4241#include <net_interface.h>
    4342#include <net/modules.h>
    4443
     44// FIXME: remove this header
     45#include <kernel/ipc/ipc_methods.h>
     46
    4547/** Default thread for new connections.
    4648 *
    47  * @param[in] iid   The initial message identifier.
    48  * @param[in] icall The initial message call structure.
    49  * @param[in] arg   Local argument.
     49 * @param[in] iid       The initial message identifier.
     50 * @param[in] icall     The initial message call structure.
     51 * @param[in] arg       Local argument.
    5052 *
    5153 */
     
    104106 *
    105107 */
    106 int tl_module_start(sysarg_t service)
     108int tl_module_start(int service)
    107109{
    108110        async_set_client_connection(tl_client_connection);
    109         async_sess_t *sess = net_connect_module();
    110         if (!sess)
    111                 return ENOENT;
     111        int net_phone = net_connect_module();
     112        if (net_phone < 0)
     113                return net_phone;
    112114       
    113115        int rc = pm_init();
     
    115117                return rc;
    116118       
    117         rc = tl_initialize(sess);
     119        rc = tl_initialize(net_phone);
    118120        if (rc != EOK)
    119121                goto out;
    120122       
    121         rc = service_register(service);
     123        rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);
    122124        if (rc != EOK)
    123125                goto out;
Note: See TracChangeset for help on using the changeset viewer.