Changes in uspace/srv/net/tl/icmp/icmp_module.c [d8f95529:edc5a985] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp_module.c
rd8f95529 redc5a985 43 43 #include <async.h> 44 44 #include <stdio.h> 45 #include <err no.h>45 #include <err.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 60 62 ipcarg_t phonehash; 61 int rc;62 63 63 64 async_set_client_connection(client_connection); … … 66 67 return icmp_globals.net_phone; 67 68 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; 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 } 79 75 80 76 async_manager(); 81 77 82 out:83 78 pm_destroy(); 84 return rc;79 return EOK; 85 80 } 86 81 … … 94 89 /** @} 95 90 */ 91
Note:
See TracChangeset
for help on using the changeset viewer.