Changeset 46ae62c in mainline for uspace/srv/net/tl/udp/udp_module.c
- Timestamp:
- 2010-11-04T18:26:43Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- a873201
- Parents:
- d8f95529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp_module.c
rd8f95529 r46ae62c 44 44 #include <async.h> 45 45 #include <stdio.h> 46 #include <err .h>46 #include <errno.h> 47 47 #include <ipc/ipc.h> 48 48 #include <ipc/services.h> … … 59 59 int tl_module_start_standalone(async_client_conn_t client_connection) 60 60 { 61 ERROR_DECLARE;62 63 61 ipcarg_t phonehash; 62 int rc; 64 63 65 64 async_set_client_connection(client_connection); … … 67 66 if (udp_globals.net_phone < 0) 68 67 return udp_globals.net_phone; 69 70 ERROR_PROPAGATE(pm_init()); 71 if (ERROR_OCCURRED(udp_initialize(client_connection)) || 72 ERROR_OCCURRED(REGISTER_ME(SERVICE_UDP, &phonehash))) { 73 pm_destroy(); 74 return ERROR_CODE; 75 } 68 69 rc = pm_init(); 70 if (rc != EOK) 71 return EOK; 72 73 rc = udp_initialize(client_connection); 74 if (rc != EOK) 75 goto out; 76 77 rc = REGISTER_ME(SERVICE_UDP, &phonehash); 78 if (rc != EOK) 79 goto out; 76 80 77 81 async_manager(); 78 82 83 out: 79 84 pm_destroy(); 80 return EOK;85 return rc; 81 86 } 82 87
Note:
See TracChangeset
for help on using the changeset viewer.