Changes in uspace/srv/net/nil/nildummy/nildummy_module.c [08e3ca4:09d5ec8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy_module.c
r08e3ca4 r09d5ec8 38 38 #include <async.h> 39 39 #include <stdio.h> 40 #include <err no.h>40 #include <err.h> 41 41 42 42 #include <ipc/ipc.h> … … 52 52 int nil_module_start_standalone(async_client_conn_t client_connection) 53 53 { 54 ipcarg_t phonehash; 55 int rc; 54 ERROR_DECLARE; 56 55 57 56 async_set_client_connection(client_connection); 58 57 int net_phone = net_connect_module(); 58 ERROR_PROPAGATE(pm_init()); 59 59 60 rc = pm_init(); 61 if (rc != EOK) 62 return rc; 63 64 65 rc = nil_initialize(net_phone); 66 if (rc != EOK) 67 goto out; 68 69 rc = REGISTER_ME(SERVICE_NILDUMMY, &phonehash); 70 if (rc != EOK) 71 goto out; 60 ipcarg_t phonehash; 61 if (ERROR_OCCURRED(nil_initialize(net_phone)) || 62 ERROR_OCCURRED(REGISTER_ME(SERVICE_NILDUMMY, &phonehash))) { 63 pm_destroy(); 64 return ERROR_CODE; 65 } 72 66 73 67 async_manager(); 74 75 out: 68 76 69 pm_destroy(); 77 return rc;70 return EOK; 78 71 } 79 72
Note:
See TracChangeset
for help on using the changeset viewer.