Changeset eb13ef8 in mainline for uspace/lib/c/generic/devman.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/devman.c

    rbb97118 reb13ef8  
    255255        if (retval == EOK) {
    256256                if (funh != NULL)
    257                         *funh = (int) IPC_GET_ARG1(answer);
     257                        *funh = (int) IPC_GET_ARG1(&answer);
    258258        } else {
    259259                if (funh != NULL)
     
    394394
    395395        if (handle != NULL)
    396                 *handle = (devman_handle_t) IPC_GET_ARG1(answer);
     396                *handle = (devman_handle_t) IPC_GET_ARG1(&answer);
    397397
    398398        return retval;
     
    429429
    430430        if (r1 != NULL)
    431                 *r1 = IPC_GET_ARG1(answer);
    432         act_size = IPC_GET_ARG2(dreply);
     431                *r1 = IPC_GET_ARG1(&answer);
     432        act_size = IPC_GET_ARG2(&dreply);
    433433        assert(act_size <= buf_size - 1);
    434434        buf[act_size] = '\0';
     
    517517        }
    518518
    519         *act_size = IPC_GET_ARG1(answer);
     519        *act_size = IPC_GET_ARG1(&answer);
    520520        return EOK;
    521521}
     
    663663
    664664        if (handle != NULL)
    665                 *handle = (devman_handle_t) IPC_GET_ARG1(answer);
     665                *handle = (devman_handle_t) IPC_GET_ARG1(&answer);
    666666
    667667        return retval;
Note: See TracChangeset for help on using the changeset viewer.