Changeset eb13ef8 in mainline for uspace/lib/c/generic/io/input.c


Ignore:
Timestamp:
2019-02-06T13:25:12Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fafb8e5
Parents:
bb97118
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:04:02)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
Message:

Change IPC_GET_* and IPC_SET_* to accept pointer instead of lvalue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/input.c

    rbb97118 reb13ef8  
    112112        errno_t rc;
    113113
    114         type = IPC_GET_ARG1(*call);
    115         key = IPC_GET_ARG2(*call);
    116         mods = IPC_GET_ARG3(*call);
    117         c = IPC_GET_ARG4(*call);
     114        type = IPC_GET_ARG1(call);
     115        key = IPC_GET_ARG2(call);
     116        mods = IPC_GET_ARG3(call);
     117        c = IPC_GET_ARG4(call);
    118118
    119119        rc = input->ev_ops->key(input, type, key, mods, c);
     
    127127        errno_t rc;
    128128
    129         dx = IPC_GET_ARG1(*call);
    130         dy = IPC_GET_ARG2(*call);
     129        dx = IPC_GET_ARG1(call);
     130        dy = IPC_GET_ARG2(call);
    131131
    132132        rc = input->ev_ops->move(input, dx, dy);
     
    142142        errno_t rc;
    143143
    144         x = IPC_GET_ARG1(*call);
    145         y = IPC_GET_ARG2(*call);
    146         max_x = IPC_GET_ARG3(*call);
    147         max_y = IPC_GET_ARG4(*call);
     144        x = IPC_GET_ARG1(call);
     145        y = IPC_GET_ARG2(call);
     146        max_x = IPC_GET_ARG3(call);
     147        max_y = IPC_GET_ARG4(call);
    148148
    149149        rc = input->ev_ops->abs_move(input, x, y, max_x, max_y);
     
    157157        errno_t rc;
    158158
    159         bnum = IPC_GET_ARG1(*call);
    160         press = IPC_GET_ARG2(*call);
     159        bnum = IPC_GET_ARG1(call);
     160        press = IPC_GET_ARG2(call);
    161161
    162162        rc = input->ev_ops->button(input, bnum, press);
     
    172172                async_get_call(&call);
    173173
    174                 if (!IPC_GET_IMETHOD(call)) {
     174                if (!IPC_GET_IMETHOD(&call)) {
    175175                        async_answer_0(&call, EOK);
    176176                        return;
    177177                }
    178178
    179                 switch (IPC_GET_IMETHOD(call)) {
     179                switch (IPC_GET_IMETHOD(&call)) {
    180180                case INPUT_EVENT_ACTIVE:
    181181                        input_ev_active(input, &call);
Note: See TracChangeset for help on using the changeset viewer.