use roken* macros

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3700 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-29 01:30:58 +00:00
parent c145f0f8e4
commit 62143c0e4a
9 changed files with 19 additions and 15 deletions

View File

@@ -73,9 +73,11 @@ krb5_get_host_realm(krb5_context context,
}
addr.s_addr = inet_addr(host);
hostent = gethostbyname (host);
hostent = roken_gethostbyname (host);
if (hostent == NULL && addr.s_addr != INADDR_NONE)
hostent = gethostbyaddr ((const char *)&addr, sizeof(addr), AF_INET);
hostent = roken_gethostbyaddr ((const char *)&addr,
sizeof(addr),
AF_INET);
if (hostent != NULL)
host = hostent->h_name;