FreeBSD/contrib/ntp/sntp/utilities.c
/* Convert a struct addrinfo to a string containing the address in style
 * of inet_ntoa
 */
Convert a struct addrinfo to a string containing the address in style
of inet_ntoa
Convert a struct addrinfo to a string containing the address in style of inet_ntoa
char *
addrinfo_to_str (
	const struct addrinfo *addr
	)
{
	sockaddr_u	s;
	ZERO(s);
	memcpy(&s, addr->ai_addr, min(sizeof(s), addr->ai_addrlen));
	return ss_to_str(&s);
}
char * addrinfo_to_str ( const struct addrinfo * addr ) { sockaddr_u s ; ZERO ( s ) ; memcpy ( & s , addr -> ai_addr , min ( sizeof ( s ) , addr -> ai_addrlen ) ) ; return ss_to_str ( & s ) ; }
Convert a struct addrinfo to a string containing the address in style
 of inet_ntoa
Convert a struct addrinfo to a string containing the address in style of inet_ntoa