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