Changes in uspace/app/nic/nic.c [1d6dd2a:18902ca6] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nic/nic.c

    r1d6dd2a r18902ca6  
    4040#include <stdlib.h>
    4141#include <stddef.h>
    42 #include <str.h>
    4342#include <str_error.h>
    4443
     
    7372static async_sess_t *get_nic_by_index(size_t i)
    7473{
    75         errno_t rc;
     74        int rc;
    7675        size_t count;
    7776        char *svc_name;
     
    111110}
    112111
    113 static errno_t nic_get_info(service_id_t svc_id, char *svc_name,
     112static int nic_get_info(service_id_t svc_id, char *svc_name,
    114113    nic_info_t *info)
    115114{
    116115        async_sess_t *sess;
    117116        nic_role_t role;
    118         errno_t rc;
     117        int rc;
    119118
    120119        sess = loc_service_connect(svc_id, INTERFACE_DDF, 0);
     
    246245}
    247246
    248 static errno_t nic_list(void)
     247static int nic_list(void)
    249248{
    250249        category_id_t nic_cat;
     
    254253        char *svc_name;
    255254        char *addr_str;
    256         errno_t rc;
     255        int rc;
    257256
    258257        rc = loc_category_get_id("nic", &nic_cat, 0);
     
    317316}
    318317
    319 static errno_t nic_set_speed(int i, char *str)
     318static int nic_set_speed(int i, char *str)
    320319{
    321320        async_sess_t *sess;
     
    324323        nic_channel_mode_t oldduplex;
    325324        nic_role_t oldrole;
    326         errno_t rc;
     325        int rc;
    327326
    328327        rc = str_uint32_t(str, NULL, 10, false, &speed);
     
    352351}
    353352
    354 static errno_t nic_set_duplex(int i, char *str)
     353static int nic_set_duplex(int i, char *str)
    355354{
    356355        async_sess_t *sess;
     
    359358        nic_channel_mode_t oldduplex;
    360359        nic_role_t oldrole;
    361         errno_t rc;
     360        int rc;
    362361
    363362        if (!str_cmp(str, "half"))
     
    390389}
    391390
    392 static errno_t nic_set_autoneg(int i)
    393 {
    394         async_sess_t *sess;
    395         errno_t rc;
     391static int nic_set_autoneg(int i)
     392{
     393        async_sess_t *sess;
     394        int rc;
    396395
    397396        sess = get_nic_by_index(i);
     
    410409}
    411410
    412 static errno_t nic_set_addr(int i, char *str)
     411static int nic_set_addr(int i, char *str)
    413412{
    414413        async_sess_t *sess;
    415414        nic_address_t addr;
    416         errno_t rc;
    417         int idx;
     415        int rc, idx;
    418416
    419417        sess = get_nic_by_index(i);
     
    439437}
    440438
    441 static errno_t nic_set_rx_unicast(int i, char *str)
     439static int nic_set_rx_unicast(int i, char *str)
    442440{
    443441        async_sess_t *sess;
     
    474472}
    475473
    476 static errno_t nic_set_rx_multicast(int i, char *str)
     474static int nic_set_rx_multicast(int i, char *str)
    477475{
    478476        async_sess_t *sess;
     
    503501}
    504502
    505 static errno_t nic_set_rx_broadcast(int i, char *str)
     503static int nic_set_rx_broadcast(int i, char *str)
    506504{
    507505        async_sess_t *sess;
     
    529527int main(int argc, char *argv[])
    530528{
    531         errno_t rc;
     529        int rc;
    532530        uint32_t index;
    533531
Note: See TracChangeset for help on using the changeset viewer.