Changeset d8f95529 in mainline for uspace/srv/net/tl/icmp/icmp_module.c
- Timestamp:
- 2010-11-04T17:21:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46ae62c
- Parents:
- 08e3ca4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp_module.c
r08e3ca4 rd8f95529 43 43 #include <async.h> 44 44 #include <stdio.h> 45 #include <err .h>45 #include <errno.h> 46 46 #include <ipc/ipc.h> 47 47 #include <ipc/services.h> … … 58 58 int tl_module_start_standalone(async_client_conn_t client_connection) 59 59 { 60 ERROR_DECLARE;61 62 60 ipcarg_t phonehash; 61 int rc; 63 62 64 63 async_set_client_connection(client_connection); … … 67 66 return icmp_globals.net_phone; 68 67 69 ERROR_PROPAGATE(pm_init()); 70 if (ERROR_OCCURRED(icmp_initialize(client_connection)) || 71 ERROR_OCCURRED(REGISTER_ME(SERVICE_ICMP, &phonehash))) { 72 pm_destroy(); 73 return ERROR_CODE; 74 } 68 rc = pm_init(); 69 if (rc != EOK) 70 return rc; 71 72 rc = icmp_initialize(client_connection); 73 if (rc != EOK) 74 goto out; 75 76 rc = REGISTER_ME(SERVICE_ICMP, &phonehash); 77 if (rc != EOK) 78 goto out; 75 79 76 80 async_manager(); 77 81 82 out: 78 83 pm_destroy(); 79 return EOK;84 return rc; 80 85 } 81 86 … … 89 94 /** @} 90 95 */ 91
Note:
See TracChangeset
for help on using the changeset viewer.