Changeset 6b82009 in mainline for uspace/lib/net/nil/nil_skel.c
- Timestamp:
- 2011-06-22T20:41:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef09a7a
- Parents:
- 55091847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_skel.c
r55091847 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> 42 43 #include <net/modules.h> 43 #include <async_obsolete.h>44 45 // FIXME: remove this header46 #include <kernel/ipc/ipc_methods.h>47 44 48 45 /** Default thread for new connections. … … 100 97 * @return Other error codes as defined for the nil_initialize() 101 98 * function. 102 * @return Other error codes as defined for the REGISTER_ME() macro103 * function.104 99 * 105 100 */ 106 int nil_module_start( int service)101 int nil_module_start(sysarg_t service) 107 102 { 108 103 async_set_client_connection(nil_client_connection); 109 int net_phone= net_connect_module();110 if ( net_phone < 0)111 return net_phone;104 async_sess_t *sess = net_connect_module(); 105 if (!sess) 106 return ENOENT; 112 107 113 108 int rc = pm_init(); … … 115 110 return rc; 116 111 117 rc = nil_initialize( net_phone);112 rc = nil_initialize(sess); 118 113 if (rc != EOK) 119 114 goto out; 120 115 121 rc = async_obsolete_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL);116 rc = service_register(service); 122 117 if (rc != EOK) 123 118 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.