Ignore:
Timestamp:
2010-03-15T19:35:25Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6092b56e
Parents:
92307f1 (diff), 4684368 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from bzr://bzr.helenos.org/head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/socket/socket_messages.h

    r92307f1 r858fc90  
    115115 *  @param[out] answer The message answer structure.
    116116 */
    117 #define SOCKET_SET_SOCKET_ID( answer )                  ( int * ) & IPC_GET_ARG1( answer )
     117#define SOCKET_SET_SOCKET_ID(answer)                    (int *) &IPC_GET_ARG1(answer)
    118118
    119119/** Returns the socket identifier message parameter.
    120120 *  @param[in] call The message call structure.
    121121 */
    122 #define SOCKET_GET_SOCKET_ID( call )                    ( int ) IPC_GET_ARG1( call )
     122#define SOCKET_GET_SOCKET_ID(call)                      (int) IPC_GET_ARG1(call)
    123123
    124124/** Sets the read data length in the message answer.
    125125 *  @param[out] answer The message answer structure.
    126126 */
    127 #define SOCKET_SET_READ_DATA_LENGTH( answer )   ( int * ) & IPC_GET_ARG1( answer )
     127#define SOCKET_SET_READ_DATA_LENGTH(answer)     (int *) &IPC_GET_ARG1(answer)
    128128
    129129/** Returns the read data length message parameter.
    130130 *  @param[in] call The message call structure.
    131131 */
    132 #define SOCKET_GET_READ_DATA_LENGTH( call )             ( int ) IPC_GET_ARG1( call )
     132#define SOCKET_GET_READ_DATA_LENGTH(call)               (int) IPC_GET_ARG1(call)
    133133
    134134/** Returns the backlog message parameter.
    135135 *  @param[in] call The message call structure.
    136136 */
    137 #define SOCKET_GET_BACKLOG( call )                              ( int ) IPC_GET_ARG2( call )
     137#define SOCKET_GET_BACKLOG(call)                                (int) IPC_GET_ARG2(call)
    138138
    139139/** Returns the option level message parameter.
    140140 *  @param[in] call The message call structure.
    141141 */
    142 #define SOCKET_GET_OPT_LEVEL( call )                    ( int ) IPC_GET_ARG2( call )
     142#define SOCKET_GET_OPT_LEVEL(call)                      (int) IPC_GET_ARG2(call)
    143143
    144144/** Returns the data fragment size message parameter.
    145145 *  @param[in] call The message call structure.
    146146 */
    147 #define SOCKET_GET_DATA_FRAGMENT_SIZE( call )   ( size_t ) IPC_GET_ARG2( call )
     147#define SOCKET_GET_DATA_FRAGMENT_SIZE(call)     (size_t) IPC_GET_ARG2(call)
    148148
    149149/** Sets the data fragment size in the message answer.
    150150 *  @param[out] answer The message answer structure.
    151151 */
    152 #define SOCKET_SET_DATA_FRAGMENT_SIZE( answer ) ( size_t * ) & IPC_GET_ARG2( answer )
     152#define SOCKET_SET_DATA_FRAGMENT_SIZE(answer)   (size_t *) &IPC_GET_ARG2(answer)
    153153
    154154/** Sets the address length in the message answer.
    155155 *  @param[out] answer The message answer structure.
    156156 */
    157 #define SOCKET_SET_ADDRESS_LENGTH( answer )             ( socklen_t * ) & IPC_GET_ARG3( answer )
     157#define SOCKET_SET_ADDRESS_LENGTH(answer)               (socklen_t *) &IPC_GET_ARG3(answer)
    158158
    159159/** Returns the address length message parameter.
    160160 *  @param[in] call The message call structure.
    161161 */
    162 #define SOCKET_GET_ADDRESS_LENGTH( call )               ( socklen_t ) IPC_GET_ARG3( call )
     162#define SOCKET_GET_ADDRESS_LENGTH(call)         (socklen_t) IPC_GET_ARG3(call)
    163163
    164164/** Sets the header size in the message answer.
    165165 *  @param[out] answer The message answer structure.
    166166 */
    167 #define SOCKET_SET_HEADER_SIZE( answer )                ( int * ) & IPC_GET_ARG3( answer )
     167#define SOCKET_SET_HEADER_SIZE(answer)          (int *) &IPC_GET_ARG3(answer)
    168168
    169169/** Returns the header size message parameter.
    170170 *  @param[in] call The message call structure.
    171171 */
    172 #define SOCKET_GET_HEADER_SIZE( call )                  ( int ) IPC_GET_ARG3( call )
     172#define SOCKET_GET_HEADER_SIZE(call)                    (int) IPC_GET_ARG3(call)
    173173
    174174/** Returns the flags message parameter.
    175175 *  @param[in] call The message call structure.
    176176 */
    177 #define SOCKET_GET_FLAGS( call )                                ( int ) IPC_GET_ARG4( call )
     177#define SOCKET_GET_FLAGS(call)                          (int) IPC_GET_ARG4(call)
    178178
    179179/** Returns the option name message parameter.
    180180 *  @param[in] call The message call structure.
    181181 */
    182 #define SOCKET_GET_OPT_NAME( call )                             ( int ) IPC_GET_ARG4( call )
     182#define SOCKET_GET_OPT_NAME(call)                               (int) IPC_GET_ARG4(call)
    183183
    184184/** Returns the data fragments message parameter.
    185185 *  @param[in] call The message call structure.
    186186 */
    187 #define SOCKET_GET_DATA_FRAGMENTS( call )               ( int ) IPC_GET_ARG5( call )
     187#define SOCKET_GET_DATA_FRAGMENTS(call)         (int) IPC_GET_ARG5(call)
    188188
    189189/** Returns the new socket identifier message parameter.
    190190 *  @param[in] call The message call structure.
    191191 */
    192 #define SOCKET_GET_NEW_SOCKET_ID( call )                ( int ) IPC_GET_ARG5( call )
     192#define SOCKET_GET_NEW_SOCKET_ID(call)          (int) IPC_GET_ARG5(call)
    193193
    194194/*@}*/
Note: See TracChangeset for help on using the changeset viewer.