Changes in uspace/lib/net/nil/nil_skel.c [6b82009:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_skel.c
r6b82009 r79ae36dd 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h>41 40 #include <nil_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. … … 49 51 * 50 52 */ 51 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall, 52 void *arg) 53 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall) 53 54 { 54 55 /* … … 97 98 * @return Other error codes as defined for the nil_initialize() 98 99 * function. 100 * @return Other error codes as defined for the REGISTER_ME() macro 101 * function. 99 102 * 100 103 */ 101 int nil_module_start( sysarg_t service)104 int nil_module_start(int service) 102 105 { 103 106 async_set_client_connection(nil_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; 107 110 108 111 int rc = pm_init(); … … 110 113 return rc; 111 114 112 rc = nil_initialize( sess);115 rc = nil_initialize(net_phone); 113 116 if (rc != EOK) 114 117 goto out; 115 118 116 rc = service_register(service);119 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL); 117 120 if (rc != EOK) 118 121 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.