Changeset b7fd2a0 in mainline for uspace/lib/c/generic/dhcp.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dhcp.c
r36f0738 rb7fd2a0 44 44 static async_sess_t *dhcp_sess = NULL; 45 45 46 int dhcp_init(void)46 errno_t dhcp_init(void) 47 47 { 48 48 service_id_t dhcp_svc; 49 int rc;49 errno_t rc; 50 50 51 51 assert(dhcp_sess == NULL); … … 64 64 } 65 65 66 int dhcp_link_add(sysarg_t link_id)66 errno_t dhcp_link_add(sysarg_t link_id) 67 67 { 68 68 async_exch_t *exch = async_exchange_begin(dhcp_sess); 69 69 70 int rc = async_req_1_0(exch, DHCP_LINK_ADD, link_id);70 errno_t rc = async_req_1_0(exch, DHCP_LINK_ADD, link_id); 71 71 async_exchange_end(exch); 72 72 … … 74 74 } 75 75 76 int dhcp_link_remove(sysarg_t link_id)76 errno_t dhcp_link_remove(sysarg_t link_id) 77 77 { 78 78 async_exch_t *exch = async_exchange_begin(dhcp_sess); 79 79 80 int rc = async_req_1_0(exch, DHCP_LINK_REMOVE, link_id);80 errno_t rc = async_req_1_0(exch, DHCP_LINK_REMOVE, link_id); 81 81 async_exchange_end(exch); 82 82 … … 84 84 } 85 85 86 int dhcp_discover(sysarg_t link_id)86 errno_t dhcp_discover(sysarg_t link_id) 87 87 { 88 88 async_exch_t *exch = async_exchange_begin(dhcp_sess); 89 89 90 int rc = async_req_1_0(exch, DHCP_DISCOVER, link_id);90 errno_t rc = async_req_1_0(exch, DHCP_DISCOVER, link_id); 91 91 async_exchange_end(exch); 92 92
Note:
See TracChangeset
for help on using the changeset viewer.