Please sign in to comment.
use getnameinfo instead of casting to sockaddr_in
It seems that while you can cast from sockaddr_in to sockaddr, a cast in the opposite direction may change the size of the type and hence alignment on 64 bit platforms. This is fine, I now use getnameinfo to return a char * of the IP address. Also bump the version to 0.12.2, and re-add -Wcast-align to the warning flags.
- Loading branch information...