Fixed msg_addrlen() usage.
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
Showing with 12 additions and 7 deletions