2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

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.
This commit is contained in:
Michael Graff 1998-12-18 22:51:42 +00:00
parent 53d53f147b
commit 22c7e1fbca

View File

@ -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);