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


Ignore:
Timestamp:
2019-02-06T13:25:12Z (5 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/chardev.c

    rbb97118 reb13ef8  
    125125        }
    126126
    127         *nread = IPC_GET_ARG2(answer);
     127        *nread = IPC_GET_ARG2(&answer);
    128128        /* In case of partial success, ARG1 contains the error code */
    129         return (errno_t) IPC_GET_ARG1(answer);
     129        return (errno_t) IPC_GET_ARG1(&answer);
    130130
    131131}
     
    176176        }
    177177
    178         *nwritten = IPC_GET_ARG2(answer);
     178        *nwritten = IPC_GET_ARG2(&answer);
    179179        /* In case of partial success, ARG1 contains the error code */
    180         return (errno_t) IPC_GET_ARG1(answer);
     180        return (errno_t) IPC_GET_ARG1(&answer);
    181181}
    182182
Note: See TracChangeset for help on using the changeset viewer.