Changes in uspace/lib/c/generic/dhcp.c [b7fd2a0:f9b2cb4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dhcp.c
rb7fd2a0 rf9b2cb4c 44 44 static async_sess_t *dhcp_sess = NULL; 45 45 46 errno_t dhcp_init(void)46 int dhcp_init(void) 47 47 { 48 48 service_id_t dhcp_svc; 49 errno_t rc;49 int rc; 50 50 51 51 assert(dhcp_sess == NULL); … … 64 64 } 65 65 66 errno_t dhcp_link_add(sysarg_t link_id)66 int dhcp_link_add(sysarg_t link_id) 67 67 { 68 68 async_exch_t *exch = async_exchange_begin(dhcp_sess); 69 69 70 errno_t rc = async_req_1_0(exch, DHCP_LINK_ADD, link_id);70 int rc = async_req_1_0(exch, DHCP_LINK_ADD, link_id); 71 71 async_exchange_end(exch); 72 72 … … 74 74 } 75 75 76 errno_t dhcp_link_remove(sysarg_t link_id)76 int dhcp_link_remove(sysarg_t link_id) 77 77 { 78 78 async_exch_t *exch = async_exchange_begin(dhcp_sess); 79 79 80 errno_t rc = async_req_1_0(exch, DHCP_LINK_REMOVE, link_id);80 int rc = async_req_1_0(exch, DHCP_LINK_REMOVE, link_id); 81 81 async_exchange_end(exch); 82 82 … … 84 84 } 85 85 86 errno_t dhcp_discover(sysarg_t link_id)86 int dhcp_discover(sysarg_t link_id) 87 87 { 88 88 async_exch_t *exch = async_exchange_begin(dhcp_sess); 89 89 90 errno_t rc = async_req_1_0(exch, DHCP_DISCOVER, link_id);90 int 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.