/* -*-C-*-
-$Id: ntsock.c,v 1.6 1999/08/13 18:29:38 cph Exp $
+$Id: ntsock.c,v 1.7 1999/08/13 18:47:52 cph Exp $
Copyright (c) 1997-1999 Massachusetts Institute of Technology
const char *
OS_get_host_by_address (const char * host_addr)
{
- struct hostent * entry = (gethostbyaddr (host_addr));
+ struct hostent * entry
+ = (gethostbyaddr (host_addr, , (OS_host_address_length ()), AF_INET));
if (entry == 0)
return (0);
{
/* -*-C-*-
-$Id: os2sock.c,v 1.11 1999/08/13 18:29:34 cph Exp $
+$Id: os2sock.c,v 1.12 1999/08/13 18:47:57 cph Exp $
Copyright (c) 1990-1999 Massachusetts Institute of Technology
const char *
OS_get_host_by_address (const char * host_addr)
{
- struct hostent * entry = (gethostbyaddr (host_addr));
+ struct hostent * entry
+ = (gethostbyaddr (host_addr, , (OS_host_address_length ()), AF_INET));
if (entry == 0)
return (0);
{
/* -*-C-*-
-$Id: uxsock.c,v 1.20 1999/08/13 18:43:05 cph Exp $
+$Id: uxsock.c,v 1.21 1999/08/13 18:47:49 cph Exp $
Copyright (c) 1990-1999 Massachusetts Institute of Technology
CONST char *
DEFUN (OS_get_host_by_address, (host_addr), CONST char * host_addr)
{
- struct hostent * entry = (gethostbyaddr (host_addr, AF_INET));
+ struct hostent * entry
+ = (gethostbyaddr (host_addr, (OS_host_address_length ()), AF_INET));
if (entry == 0)
return (0);
{