Commit 22c7e1fb authored by Michael Graff's avatar Michael Graff
Browse files

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.
parent 53d53f14
......@@ -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("", &sockaddr.type.sin.sin_addr) == 1);
sockaddr.type.sin.sin_addr.s_addr = inet_addr("");
addrlen = sizeof(struct sockaddr_in);
INSIST(isc_socket_create(socketmgr, isc_socket_tcp,
&so2) == ISC_R_SUCCESS);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment