Changes in uspace/lib/net/tl/tl_skel.c [6b82009:9934f7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/tl_skel.c
r6b82009 r9934f7d 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h>41 40 #include <tl_skel.h> 42 41 #include <net_interface.h> 43 42 #include <net/modules.h> 44 43 44 // FIXME: remove this header 45 #include <kernel/ipc/ipc_methods.h> 46 45 47 /** Default thread for new connections. 46 48 * 47 * @param[in] iid 48 * @param[in] icall 49 * @param[in] arg 49 * @param[in] iid The initial message identifier. 50 * @param[in] icall The initial message call structure. 51 * @param[in] arg Local argument. 50 52 * 51 53 */ … … 104 106 * 105 107 */ 106 int tl_module_start( sysarg_t service)108 int tl_module_start(int service) 107 109 { 108 110 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; 112 114 113 115 int rc = pm_init(); … … 115 117 return rc; 116 118 117 rc = tl_initialize( sess);119 rc = tl_initialize(net_phone); 118 120 if (rc != EOK) 119 121 goto out; 120 122 121 rc = service_register(service);123 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL); 122 124 if (rc != EOK) 123 125 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.