Cygwin: fix whitespaces in socket code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
859d215b7e
commit
8906a4d335
|
@ -215,13 +215,13 @@ fhandler_socket_inet::connect (const struct sockaddr *name, int namelen)
|
|||
else if (is_nonblocking () && err == WSAEWOULDBLOCK)
|
||||
WSASetLastError (WSAEINPROGRESS);
|
||||
/* Winsock returns WSAEINVAL if the socket is already a listener.
|
||||
Convert to POSIX/Linux compliant EISCONN. */
|
||||
Convert to POSIX/Linux compliant EISCONN. */
|
||||
else if (err == WSAEINVAL && connect_state () == listener)
|
||||
WSASetLastError (WSAEISCONN);
|
||||
/* Any other error except WSAEALREADY during connect_pending means the
|
||||
connect failed. */
|
||||
else if (connect_state () == connect_pending && err != WSAEALREADY)
|
||||
connect_state (connect_failed);
|
||||
connect_state (connect_failed);
|
||||
set_winsock_errno ();
|
||||
}
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ connect_syslogd ()
|
|||
syslogd_inited = inited_dgram;
|
||||
}
|
||||
else
|
||||
close (fd);
|
||||
close (fd);
|
||||
}
|
||||
syslogd_sock = fd;
|
||||
debug_printf ("found /dev/log, fd = %d, type = %s",
|
||||
|
|
Loading…
Reference in New Issue