Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp_messages.h

    re417b96 raadf01e  
    8282 *  @param[in] call The message call structure.
    8383 */
    84 #define ICMP_GET_CODE(call) \
    85         ({icmp_code_t code = (icmp_code_t) IPC_GET_ARG1(*call); code;})
     84#define ICMP_GET_CODE(call)             (icmp_code_t) IPC_GET_ARG1(*call)
    8685
    8786/** Returns the ICMP link MTU message parameter.
    8887 *  @param[in] call The message call structure.
    8988 */
    90 #define ICMP_GET_MTU(call) \
    91         ({icmp_param_t mtu = (icmp_param_t) IPC_GET_ARG3(*call); mtu;})
     89#define ICMP_GET_MTU(call)              (icmp_param_t) IPC_GET_ARG3(*call)
    9290
    9391/** Returns the pointer message parameter.
    9492 *  @param[in] call The message call structure.
    9593 */
    96 #define ICMP_GET_POINTER(call) \
    97         ({icmp_param_t pointer = (icmp_param_t) IPC_GET_ARG3(*call); pointer;})
     94#define ICMP_GET_POINTER(call)          (icmp_param_t) IPC_GET_ARG3(*call)
    9895
    9996/** Returns the size message parameter.
    10097 *  @param[in] call The message call structure.
    10198 */
    102 #define ICMP_GET_SIZE(call) \
    103         ({size_t size = (size_t) IPC_GET_ARG1(call); size;})
     99#define ICMP_GET_SIZE(call)     (size_t) IPC_GET_ARG1(call)
    104100
    105101/** Returns the timeout message parameter.
    106102 *  @param[in] call The message call structure.
    107103 */
    108 #define ICMP_GET_TIMEOUT(call) \
    109         (({suseconds_t timeout = (suseconds_t) IPC_GET_ARG2(call); timeout;}))
     104#define ICMP_GET_TIMEOUT(call)  ((suseconds_t) IPC_GET_ARG2(call))
    110105
    111106/** Returns the time to live message parameter.
    112107 *  @param[in] call The message call structure.
    113108 */
    114 #define ICMP_GET_TTL(call) \
    115         ({ip_ttl_t ttl = (ip_ttl_t) IPC_GET_ARG3(call); ttl;})
     109#define ICMP_GET_TTL(call)      (ip_ttl_t) IPC_GET_ARG3(call)
    116110
    117111/** Returns the type of service message parameter.
    118112 *  @param[in] call The message call structure.
    119113 */
    120 #define ICMP_GET_TOS(call) \
    121         ({ip_tos_t tos = (ip_tos_t) IPC_GET_ARG4(call); tos;})
     114#define ICMP_GET_TOS(call)      (ip_tos_t) IPC_GET_ARG4(call)
    122115
    123116/** Returns the dont fragment message parameter.
    124117 *  @param[in] call The message call structure.
    125118 */
    126 #define ICMP_GET_DONT_FRAGMENT(call) \
    127         ({int dont_fragment = (int) IPC_GET_ARG5(call); dont_fragment;})
     119#define ICMP_GET_DONT_FRAGMENT(call)            (int) IPC_GET_ARG5(call)
    128120
    129121/*@}*/
Note: See TracChangeset for help on using the changeset viewer.