aboutsummaryrefslogtreecommitdiffstats
path: root/common/w32-afunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/w32-afunix.c')
-rw-r--r--common/w32-afunix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/w32-afunix.c b/common/w32-afunix.c
index 920561b92..690e95176 100644
--- a/common/w32-afunix.c
+++ b/common/w32-afunix.c
@@ -105,20 +105,20 @@ _w32_sock_connect (int sockfd, struct sockaddr *addr, int addrlen)
int ret;
(void)addrlen;
-
+
unaddr = (struct sockaddr_un *)addr;
if (read_port_and_nonce (unaddr->sun_path, &port, nonce))
return -1;
-
+
myaddr.sin_family = AF_INET;
- myaddr.sin_port = htons (port);
+ myaddr.sin_port = htons (port);
myaddr.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
-
+
/* Set return values. */
unaddr->sun_family = myaddr.sin_family;
unaddr->sun_port = myaddr.sin_port;
unaddr->sun_addr.s_addr = myaddr.sin_addr.s_addr;
-
+
ret = connect (sockfd, (struct sockaddr *)&myaddr, sizeof myaddr);
if (!ret)
{