Changeset 257feec in mainline for uspace/srv/net/inetsrv/inetping.c


Ignore:
Timestamp:
2013-06-27T12:48:32Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f391e9
Parents:
679ee84
Message:

cstyle (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetping.c

    r679ee84 r257feec  
    9494        int rc = async_data_write_start(exch, sdu->data, sdu->size);
    9595        async_exchange_end(exch);
    96 
     96       
    9797        if (rc != EOK) {
    9898                async_forget(req);
    9999                return rc;
    100100        }
    101 
     101       
    102102        sysarg_t retval;
    103103        async_wait_for(req, &retval);
    104         if (retval != EOK) {
    105                 return retval;
    106         }
    107 
    108         return EOK;
     104       
     105        return (int) retval;
    109106}
    110107
     
    151148        if (sess == NULL)
    152149                return ENOMEM;
    153 
     150       
    154151        client->sess = sess;
    155152        link_initialize(&client->client_list);
    156 
     153       
    157154        fibril_mutex_lock(&client_list_lock);
    158155        client->ident = ++inetping_ident;
    159156        list_append(&client->client_list, &client_list);
    160157        fibril_mutex_unlock(&client_list_lock);
    161 
     158       
    162159        return EOK;
    163160}
     
    167164        async_hangup(client->sess);
    168165        client->sess = NULL;
    169 
     166       
    170167        fibril_mutex_lock(&client_list_lock);
    171168        list_remove(&client->client_list);
     
    204201        if (rc != EOK)
    205202                return;
    206 
     203       
    207204        while (true) {
    208205                ipc_call_t call;
    209206                ipc_callid_t callid = async_get_call(&call);
    210207                sysarg_t method = IPC_GET_IMETHOD(call);
    211 
     208               
    212209                if (!method) {
    213210                        /* The other side has hung up */
     
    215212                        break;
    216213                }
    217 
     214               
    218215                switch (method) {
    219216                case INETPING_SEND:
     
    227224                }
    228225        }
    229 
     226       
    230227        inetping_client_fini(&client);
    231228}
Note: See TracChangeset for help on using the changeset viewer.