Changeset 3db8889 in mainline for uspace/srv/net/messages.h


Ignore:
Timestamp:
2010-03-24T06:49:42Z (15 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40e29f5
Parents:
5814ef7
Message:
  • make IPC_SET macros even more explicit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/messages.h

    r5814ef7 r3db8889  
    415415 */
    416416#define IPC_SET_DEVICE(answer, value) \
    417         {ipcarg_t argument = (value); IPC_SET_ARG1(*answer, argument);}
     417        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(*answer, argument);}
    418418
    419419/** Sets the minimum address length in the message answer.
     
    421421 */
    422422#define IPC_SET_ADDR(answer, value) \
    423         {ipcarg_t argument = (value); IPC_SET_ARG1(*answer, argument);}
     423        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(*answer, argument);}
    424424
    425425/*@}*/
     
    433433 */
    434434#define IPC_SET_PREFIX(answer, value) \
    435         {ipcarg_t argument = (value); IPC_SET_ARG2(*answer, argument);}
     435        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);}
    436436
    437437/*@}*/
     
    445445 */
    446446#define IPC_SET_CONTENT(answer, value) \
    447         {ipcarg_t argument = (value); IPC_SET_ARG3(*answer, argument);}
     447        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG3(*answer, argument);}
    448448
    449449/*@}*/
     
    457457 */
    458458#define IPC_SET_SUFFIX(answer, value) \
    459         {ipcarg_t argument = (value); IPC_SET_ARG4(*answer, argument);}
     459        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG4(*answer, argument);}
    460460
    461461/*@}*/
Note: See TracChangeset for help on using the changeset viewer.