Changeset aadf01e in mainline for uspace/srv/net/il/ip/ip_messages.h


Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip_messages.h

    raa85487 raadf01e  
    7272 *  @param[in] call The message call structure.
    7373 */
    74 #define IP_GET_GATEWAY( call )          ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG2( * call ); addr; })
     74#define IP_GET_GATEWAY(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;})
    7575
    7676/** Returns the address message parameter.
    7777 *  @param[in] call The message call structure.
    7878 */
    79 #define IP_GET_ADDRESS( call )          ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG3( * call ); addr; })
     79#define IP_GET_ADDRESS(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;})
    8080
    8181/** Returns the network mask message parameter.
    8282 *  @param[in] call The message call structure.
    8383 */
    84 #define IP_GET_NETMASK( call )          ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG4( * call ); addr; })
     84#define IP_GET_NETMASK(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;})
    8585
    8686/** Returns the protocol message parameter.
    8787 *  @param[in] call The message call structure.
    8888 */
    89 #define IP_GET_PROTOCOL( call )         (( ip_protocol_t ) IPC_GET_ARG1( * call ))
     89#define IP_GET_PROTOCOL(call)           ((ip_protocol_t) IPC_GET_ARG1(*call))
    9090
    9191/** Sets the header length in the message answer.
    9292 *  @param[out] answer The message answer structure.
    9393 */
    94 #define IP_SET_HEADERLEN( answer )      (( size_t * ) & IPC_GET_ARG2( * answer ))
     94#define IP_SET_HEADERLEN(answer)        ((size_t *) &IPC_GET_ARG2(*answer))
    9595
    9696/*@}*/
Note: See TracChangeset for help on using the changeset viewer.