Changeset ab87db5 in mainline for uspace/lib/c/generic/inet/tcp.c


Ignore:
Timestamp:
2019-02-23T17:16:01Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c193d83, ca0e838
Parents:
bc417660 (diff), 95a47b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
git-committer:
GitHub <noreply@…> (2019-02-23 17:16:01)
Message:

Merge pull request #157

Turn some function-like macros into functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/tcp.c

    rbc417660 rab87db5  
    232232                goto error;
    233233
    234         conn_id = IPC_GET_ARG1(answer);
     234        conn_id = ipc_get_arg1(&answer);
    235235
    236236        rc = tcp_conn_new(tcp, conn_id, cb, arg, rconn);
     
    348348
    349349        lst->tcp = tcp;
    350         lst->id = IPC_GET_ARG1(answer);
     350        lst->id = ipc_get_arg1(&answer);
    351351        lst->lcb = lcb;
    352352        lst->lcb_arg = larg;
     
    569569        }
    570570
    571         *nrecv = IPC_GET_ARG1(answer);
     571        *nrecv = ipc_get_arg1(&answer);
    572572        fibril_mutex_unlock(&conn->lock);
    573573        return EOK;
     
    626626        }
    627627
    628         *nrecv = IPC_GET_ARG1(answer);
     628        *nrecv = ipc_get_arg1(&answer);
    629629        fibril_mutex_unlock(&conn->lock);
    630630        return EOK;
     
    643643        errno_t rc;
    644644
    645         conn_id = IPC_GET_ARG1(*icall);
     645        conn_id = ipc_get_arg1(icall);
    646646
    647647        rc = tcp_conn_get(tcp, conn_id, &conn);
     
    671671        errno_t rc;
    672672
    673         conn_id = IPC_GET_ARG1(*icall);
     673        conn_id = ipc_get_arg1(icall);
    674674
    675675        rc = tcp_conn_get(tcp, conn_id, &conn);
     
    699699        errno_t rc;
    700700
    701         conn_id = IPC_GET_ARG1(*icall);
     701        conn_id = ipc_get_arg1(icall);
    702702
    703703        rc = tcp_conn_get(tcp, conn_id, &conn);
     
    727727        errno_t rc;
    728728
    729         conn_id = IPC_GET_ARG1(*icall);
     729        conn_id = ipc_get_arg1(icall);
    730730
    731731        rc = tcp_conn_get(tcp, conn_id, &conn);
     
    771771        errno_t rc;
    772772
    773         lst_id = IPC_GET_ARG1(*icall);
    774         conn_id = IPC_GET_ARG2(*icall);
     773        lst_id = ipc_get_arg1(icall);
     774        conn_id = ipc_get_arg2(icall);
    775775
    776776        rc = tcp_listener_get(tcp, lst_id, &lst);
     
    821821                async_get_call(&call);
    822822
    823                 if (!IPC_GET_IMETHOD(call)) {
     823                if (!ipc_get_imethod(&call)) {
    824824                        /* Hangup*/
    825825                        async_answer_0(&call, EOK);
     
    827827                }
    828828
    829                 switch (IPC_GET_IMETHOD(call)) {
     829                switch (ipc_get_imethod(&call)) {
    830830                case TCP_EV_CONNECTED:
    831831                        tcp_ev_connected(tcp, &call);
Note: See TracChangeset for help on using the changeset viewer.