Changeset 02314f8 in mainline for uspace/srv/net/il/ip/ip_module.c
- Timestamp:
- 2010-11-03T22:28:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 08e3ca4
- Parents:
- a852181
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip_module.c
ra852181 r02314f8 44 44 #include <ipc/ipc.h> 45 45 #include <ipc/services.h> 46 #include <err .h>46 #include <errno.h> 47 47 48 48 #include <net/modules.h> … … 66 66 int il_module_start_standalone(async_client_conn_t client_connection) 67 67 { 68 ERROR_DECLARE; 68 ipcarg_t phonehash; 69 int rc; 69 70 70 71 async_set_client_connection(client_connection); 71 72 ip_globals.net_phone = net_connect_module(); 72 ERROR_PROPAGATE(pm_init()); 73 74 rc = pm_init(); 75 if (rc != EOK) 76 return rc; 73 77 74 ipcarg_t phonehash; 75 if (ERROR_OCCURRED(ip_initialize(client_connection)) || 76 ERROR_OCCURRED(REGISTER_ME(SERVICE_IP, &phonehash))) { 77 pm_destroy(); 78 return ERROR_CODE; 79 } 78 rc = ip_initialize(client_connection); 79 if (rc != EOK) 80 goto out; 81 82 rc = REGISTER_ME(SERVICE_IP, &phonehash); 83 if (rc != EOK) 84 goto out; 80 85 81 86 async_manager(); 82 87 88 out: 83 89 pm_destroy(); 84 return EOK;90 return rc; 85 91 } 86 92
Note:
See TracChangeset
for help on using the changeset viewer.