Changeset 46577995 in mainline for uspace/app/nic
- Timestamp:
- 2018-01-04T20:50:52Z (8 years ago)
- Children:
- e211ea04
- Parents:
- facacc71
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
- File:
-
- 1 edited
-
uspace/app/nic/nic.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nic/nic.c
rfacacc71 r46577995 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;415 errno_t rc; 416 416 int idx; 417 417 … … 438 438 } 439 439 440 static int nic_set_rx_unicast(int i, char *str)440 static errno_t nic_set_rx_unicast(int i, char *str) 441 441 { 442 442 async_sess_t *sess; … … 473 473 } 474 474 475 static int nic_set_rx_multicast(int i, char *str)475 static errno_t nic_set_rx_multicast(int i, char *str) 476 476 { 477 477 async_sess_t *sess; … … 502 502 } 503 503 504 static int nic_set_rx_broadcast(int i, char *str)504 static errno_t nic_set_rx_broadcast(int i, char *str) 505 505 { 506 506 async_sess_t *sess; … … 528 528 int main(int argc, char *argv[]) 529 529 { 530 int rc;530 errno_t rc; 531 531 uint32_t index; 532 532
Note:
See TracChangeset
for help on using the changeset viewer.
