Changes in uspace/app/nic/nic.c [18902ca6:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nic/nic.c
r18902ca6 rb7fd2a0 72 72 static async_sess_t *get_nic_by_index(size_t i) 73 73 { 74 int rc;74 errno_t rc; 75 75 size_t count; 76 76 char *svc_name; … … 110 110 } 111 111 112 static int nic_get_info(service_id_t svc_id, char *svc_name,112 static errno_t nic_get_info(service_id_t svc_id, char *svc_name, 113 113 nic_info_t *info) 114 114 { 115 115 async_sess_t *sess; 116 116 nic_role_t role; 117 int rc;117 errno_t rc; 118 118 119 119 sess = loc_service_connect(svc_id, INTERFACE_DDF, 0); … … 245 245 } 246 246 247 static int nic_list(void)247 static errno_t nic_list(void) 248 248 { 249 249 category_id_t nic_cat; … … 253 253 char *svc_name; 254 254 char *addr_str; 255 int rc;255 errno_t rc; 256 256 257 257 rc = loc_category_get_id("nic", &nic_cat, 0); … … 316 316 } 317 317 318 static int nic_set_speed(int i, char *str)318 static errno_t nic_set_speed(int i, char *str) 319 319 { 320 320 async_sess_t *sess; … … 323 323 nic_channel_mode_t oldduplex; 324 324 nic_role_t oldrole; 325 int rc;325 errno_t rc; 326 326 327 327 rc = str_uint32_t(str, NULL, 10, false, &speed); … … 351 351 } 352 352 353 static int nic_set_duplex(int i, char *str)353 static errno_t nic_set_duplex(int i, char *str) 354 354 { 355 355 async_sess_t *sess; … … 358 358 nic_channel_mode_t oldduplex; 359 359 nic_role_t oldrole; 360 int rc;360 errno_t rc; 361 361 362 362 if (!str_cmp(str, "half")) … … 389 389 } 390 390 391 static int nic_set_autoneg(int i)392 { 393 async_sess_t *sess; 394 int rc;391 static errno_t nic_set_autoneg(int i) 392 { 393 async_sess_t *sess; 394 errno_t rc; 395 395 396 396 sess = get_nic_by_index(i); … … 409 409 } 410 410 411 static int nic_set_addr(int i, char *str)411 static errno_t nic_set_addr(int i, char *str) 412 412 { 413 413 async_sess_t *sess; 414 414 nic_address_t addr; 415 int rc, idx; 415 errno_t rc; 416 int idx; 416 417 417 418 sess = get_nic_by_index(i); … … 437 438 } 438 439 439 static int nic_set_rx_unicast(int i, char *str)440 static errno_t nic_set_rx_unicast(int i, char *str) 440 441 { 441 442 async_sess_t *sess; … … 472 473 } 473 474 474 static int nic_set_rx_multicast(int i, char *str)475 static errno_t nic_set_rx_multicast(int i, char *str) 475 476 { 476 477 async_sess_t *sess; … … 501 502 } 502 503 503 static int nic_set_rx_broadcast(int i, char *str)504 static errno_t nic_set_rx_broadcast(int i, char *str) 504 505 { 505 506 async_sess_t *sess; … … 527 528 int main(int argc, char *argv[]) 528 529 { 529 int rc;530 errno_t rc; 530 531 uint32_t index; 531 532
Note:
See TracChangeset
for help on using the changeset viewer.