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