From 22c7e1fbca402daf6b933ae8cf01dc94fe36cbe5 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Fri, 18 Dec 1998 22:51:42 +0000 Subject: [PATCH] use inet_addr() rather than the newer (and beter) inet_aton(). Solaris doesn't have inet_aton(), and this was quick enough for a test program. --- bin/tests/sock_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/sock_test.c b/bin/tests/sock_test.c index 18e4dad3f5..bcfe2bd0ca 100644 --- a/bin/tests/sock_test.c +++ b/bin/tests/sock_test.c @@ -332,7 +332,7 @@ main(int argc, char *argv[]) memset(&sockaddr, 0, sizeof(sockaddr)); sockaddr.type.sin.sin_port = htons(80); sockaddr.type.sin.sin_family = AF_INET; - INSIST(inet_aton("204.152.184.97", &sockaddr.type.sin.sin_addr) == 1); + sockaddr.type.sin.sin_addr.s_addr = inet_addr("204.152.184.97"); addrlen = sizeof(struct sockaddr_in); INSIST(isc_socket_create(socketmgr, isc_socket_tcp, &so2) == ISC_R_SUCCESS);