curl-library
getnameinfo() args
Date: Tue, 13 Dec 2005 19:30:57 +0100
After a couple of simple and ineffective tries at getting rid of a
compiler warning related with a call to getnameinfo() it seems that
something that could lead us closer to a proper fix would be to
implement a function in acinclude.m4 that detected the proper types of
the arguments actually used by getnameinfo().
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
Type of sa seems to always be const struct sockaddr *
Type of host and serv seems to always be char*
Types of salen can be, socklen_t size_t or int.
Types of hostlen and servlen can be size_t or int
Types of flags can be int or unsigned int.
But I'm not sure if autoconf would be able to properly do the job
since probes would be based on the ability to compile using different
combinations of argument types and some would compile even not being
the proper one. ???
Any ideas, clues, or a safer route to avoid this problem ?
Regards
Yang
Received on 2005-12-13