Changes in uspace/app/ping/ping.c [b7fd2a0:d5c1051] in mainline


Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 rd5c1051  
    7171static FIBRIL_MUTEX_INITIALIZE(quit_lock);
    7272
    73 static errno_t ping_ev_recv(inetping_sdu_t *);
     73static int ping_ev_recv(inetping_sdu_t *);
    7474
    7575static inetping_ev_ops_t ev_ops = {
     
    109109}
    110110
    111 static errno_t ping_ev_recv(inetping_sdu_t *sdu)
     111static int ping_ev_recv(inetping_sdu_t *sdu)
    112112{
    113113        char *asrc;
    114         errno_t rc = inet_addr_format(&src_addr, &asrc);
     114        int rc = inet_addr_format(&src_addr, &asrc);
    115115        if (rc != EOK)
    116116                return ENOMEM;
     
    133133}
    134134
    135 static errno_t ping_send(uint16_t seq_no)
     135static int ping_send(uint16_t seq_no)
    136136{
    137137        inetping_sdu_t sdu;
     
    143143        sdu.size = 3;
    144144       
    145         errno_t rc = inetping_send(&sdu);
     145        int rc = inetping_send(&sdu);
    146146        if (rc != EOK)
    147147                printf("Failed sending echo request: %s: %s.\n",
     
    151151}
    152152
    153 static errno_t transmit_fibril(void *arg)
     153static int transmit_fibril(void *arg)
    154154{
    155155        uint16_t seq_no = 0;
     
    163163               
    164164                fibril_mutex_lock(&received_lock);
    165                 errno_t rc = fibril_condvar_wait_timeout(&received_cv, &received_lock,
     165                int rc = fibril_condvar_wait_timeout(&received_cv, &received_lock,
    166166                    PING_TIMEOUT);
    167167                received_t recv = received;
     
    190190}
    191191
    192 static errno_t input_fibril(void *arg)
     192static int input_fibril(void *arg)
    193193{
    194194        console_ctrl_t *con = console_init(stdin, stdout);
     
    222222        ip_ver_t ip_ver = ip_any;
    223223       
    224         errno_t rc = inetping_init(&ev_ops);
     224        int rc = inetping_init(&ev_ops);
    225225        if (rc != EOK) {
    226226                printf("Failed connecting to internet ping service: "
Note: See TracChangeset for help on using the changeset viewer.