Cast alignment warnings
Julien ÉLIE
julien at trigofacile.com
Mon Aug 1 20:42:33 UTC 2011
Hi Russ,
> INN already uses getaddrinfo and getnameinfo almost everywhere, but that
> doesn't actually help all that much unless one only passes around addrinfo
> structs instead of sockaddrs, and that's kind of awkward when getpeername
> returns a sockaddr. (Also, you'll notice that some of the warnings are
> from INN's replacement for a missing getaddrinfo and getnameinfo.)
These specific two warnings came from the test suite.
> There's even a comment saying that this doesn't implement the alignment
> goo properly. I'm not sure how much it matters, given how ubiquitous
> support for those functions now is, but RFC 3493 has the correct struct
> definitions, I think.
At least, on this sparc64, the replacement code is not used for the main
INN binaries.
include/config.h:#define HAVE_STRUCT_SOCKADDR_STORAGE 1
include/config.h:#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
--
Julien ÉLIE
« Un ami fidèle qui parle très bien votre langue et toutes les
langues vivantes : le latin, le grec, le celte, etc. » (Astérix)
More information about the inn-workers
mailing list