Use INADDR_LOOPBACK

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1054 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-19 20:12:37 +00:00
parent afaa21e8cb
commit e87bd14a11

View File

@@ -152,7 +152,7 @@ get_xsockets (int *unix_socket, int *tcp_socket)
if (h)
memcpy (&local, h->h_addr, h->h_length);
else
local.s_addr = inet_addr ("127.0.0.1");
local.s_addr = INADDR_LOOPBACK;
for(dpy = 4; dpy < 256; ++dpy) {
unixfd = socket (AF_UNIX, SOCK_STREAM, 0);