Changeset 4ef32e0c in mainline for uspace/srv/net/nil/eth/eth_module.c
- Timestamp:
- 2010-11-03T21:14:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a852181
- Parents:
- 10b229fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth_module.c
r10b229fa r4ef32e0c 40 40 #include <async.h> 41 41 #include <stdio.h> 42 #include <err .h>42 #include <errno.h> 43 43 44 44 #include <ipc/ipc.h> … … 52 52 int nil_module_start_standalone(async_client_conn_t client_connection) 53 53 { 54 ERROR_DECLARE; 54 ipcarg_t phonehash; 55 int rc; 55 56 56 57 async_set_client_connection(client_connection); 57 58 int net_phone = net_connect_module(); 58 ERROR_PROPAGATE(pm_init()); 59 60 rc = pm_init(); 61 if (rc != EOK) 62 return rc; 59 63 60 ipcarg_t phonehash; 61 if (ERROR_OCCURRED(nil_initialize(net_phone)) || 62 ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))) { 64 rc = nil_initialize(net_phone); 65 if (rc != EOK) { 63 66 pm_destroy(); 64 return ERROR_CODE; 67 return rc; 68 } 69 70 rc = REGISTER_ME(SERVICE_ETHERNET, &phonehash); 71 if (rc != EOK) { 72 pm_destroy(); 73 return rc; 65 74 } 66 75
Note:
See TracChangeset
for help on using the changeset viewer.