Changes in uspace/lib/net/nil/nil_skel.c [ffa2c8ef:6b82009] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_skel.c
rffa2c8ef r6b82009 38 38 #include <bool.h> 39 39 #include <errno.h> 40 #include <ns.h> 40 41 #include <nil_skel.h> 41 42 #include <net_interface.h> … … 48 49 * 49 50 */ 50 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall) 51 static void nil_client_connection(ipc_callid_t iid, ipc_call_t *icall, 52 void *arg) 51 53 { 52 54 /* … … 75 77 * result. 76 78 */ 77 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 78 (res == EHANGUP)) 79 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP)) 79 80 return; 80 81 … … 96 97 * @return Other error codes as defined for the nil_initialize() 97 98 * function. 98 * @return Other error codes as defined for the REGISTER_ME() macro99 * function.100 99 * 101 100 */ 102 int nil_module_start( int service)101 int nil_module_start(sysarg_t service) 103 102 { 104 103 async_set_client_connection(nil_client_connection); 105 int net_phone= net_connect_module();106 if ( net_phone < 0)107 return net_phone;104 async_sess_t *sess = net_connect_module(); 105 if (!sess) 106 return ENOENT; 108 107 109 108 int rc = pm_init(); … … 111 110 return rc; 112 111 113 rc = nil_initialize( net_phone);112 rc = nil_initialize(sess); 114 113 if (rc != EOK) 115 114 goto out; 116 115 117 rc = async_connect_to_me(PHONE_NS, service, 0, 0, NULL);116 rc = service_register(service); 118 117 if (rc != EOK) 119 118 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.