SCCS-vsn: lib/libc/net/gethostnamadr.c 6.32
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)gethostnamadr.c 6.31 (Berkeley) %G%";
+static char sccsid[] = "@(#)gethostnamadr.c 6.32 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
printf("res_query failed\n");
#endif
if (errno == ECONNREFUSED)
printf("res_query failed\n");
#endif
if (errno == ECONNREFUSED)
- hp = _gethtbyaddr(addr, len, type);
+ return (_gethtbyaddr(addr, len, type));
return ((struct hostent *) NULL);
}
hp = getanswer(&buf, n, 1);
return ((struct hostent *) NULL);
}
hp = getanswer(&buf, n, 1);