FreeBSD/contrib/ntp/libntp/ntp_rfc2553.c
/*
 * Encapsulate gethostbyname to control the error code
 */
Encapsulate gethostbyname to control the error code
Encapsulate gethostbyname to control the error code
int
DNSlookup_name(
	const char *name,
	int ai_family,
	struct hostent **Addresses
)
{
	*Addresses = gethostbyname(name);
	return (h_errno);
}
int DNSlookup_name ( const char * name , int ai_family , struct hostent * * Addresses ) { * Addresses = gethostbyname ( name ) ; return ( h_errno ) ; }
Encapsulate gethostbyname to control the error code
Encapsulate gethostbyname to control the error code