• Pekka Pessi's avatar
    Fixed msg_addrlen() usage. · 2a7b3c9a
    Pekka Pessi authored
    msg_addrlen() returns a pointer to ai_addrlen field of struct addrinfo
    inside the msg_t object. ai_addrlen has type size_t. However, system calls
    taking a return valur pointer to address length, use type socklen_t.
    Typically size_t is unsigned long, socklen_t is int, so casting
    msg_addrlen() return value to (socklen_t *) will break on (high-endian)
    64-bit platforms. svsp.
    
    darcs-hash:20060512123739-65a35-f40e2a77be00bd3293d8cc6877252b046afabcce.gz
    2a7b3c9a
tport_type_udp.c 10.5 KB