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

    rbb97118 reb13ef8  
    6262        }
    6363
    64         *act_size = IPC_GET_ARG1(answer);
     64        *act_size = IPC_GET_ARG1(&answer);
    6565        return EOK;
    6666}
     
    161161        async_wait_for(req, &retval);
    162162
    163         *addr_id = IPC_GET_ARG1(answer);
     163        *addr_id = IPC_GET_ARG1(&answer);
    164164
    165165        return retval;
     
    217217                return retval;
    218218
    219         size_t act_size = IPC_GET_ARG2(answer_name);
     219        size_t act_size = IPC_GET_ARG2(&answer_name);
    220220        assert(act_size <= LOC_NAME_MAXLEN);
    221221
    222222        name_buf[act_size] = '\0';
    223223
    224         ainfo->ilink = IPC_GET_ARG1(answer);
     224        ainfo->ilink = IPC_GET_ARG1(&answer);
    225225        ainfo->name = str_dup(name_buf);
    226226
     
    244244
    245245        async_wait_for(req, &retval);
    246         *addr_id = IPC_GET_ARG1(answer);
     246        *addr_id = IPC_GET_ARG1(&answer);
    247247
    248248        return retval;
     
    305305                return retval;
    306306
    307         act_size = IPC_GET_ARG2(dreply);
     307        act_size = IPC_GET_ARG2(&dreply);
    308308        assert(act_size <= LOC_NAME_MAXLEN);
    309309        name_buf[act_size] = '\0';
    310310
    311311        linfo->name = str_dup(name_buf);
    312         linfo->def_mtu = IPC_GET_ARG1(answer);
     312        linfo->def_mtu = IPC_GET_ARG1(&answer);
    313313
    314314        return EOK;
     
    359359        async_wait_for(req, &retval);
    360360
    361         *sroute_id = IPC_GET_ARG1(answer);
     361        *sroute_id = IPC_GET_ARG1(&answer);
    362362
    363363        return retval;
     
    428428                return retval;
    429429
    430         size_t act_size = IPC_GET_ARG2(answer_name);
     430        size_t act_size = IPC_GET_ARG2(&answer_name);
    431431        assert(act_size <= LOC_NAME_MAXLEN);
    432432
     
    454454
    455455        async_wait_for(req, &retval);
    456         *sroute_id = IPC_GET_ARG1(answer);
     456        *sroute_id = IPC_GET_ARG1(&answer);
    457457
    458458        return retval;
Note: See TracChangeset for help on using the changeset viewer.