Skip to content

Commit 1497e6f

Browse files
committed
Update code formatting
1 parent 254bea4 commit 1497e6f

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/windows.hpp

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,21 @@ struct tcp_keepalive
5959
static inline int poll (struct pollfd *pfd, unsigned long nfds, int timeout)
6060
{
6161
int rc = WSAPoll (pfd, nfds, timeout);
62-
if (rc == -1)
63-
{
64-
int wsaError = WSAGetLastError ();
65-
switch (wsaError)
66-
{
67-
// let these conditions appear as an interrupted call to
68-
// simplify downstream error processing.
69-
case WSAENETDOWN:
70-
case WSAENOBUFS:
71-
errno = EINTR;
72-
break;
73-
74-
default:
75-
errno = zmq::wsa_error_to_errno(wsaError);
76-
break;
62+
if (rc == -1) {
63+
int wsaError = WSAGetLastError ();
64+
switch (wsaError) {
65+
// let these conditions appear as an interrupted call to
66+
// simplify downstream error processing.
67+
case WSAENETDOWN:
68+
case WSAENOBUFS:
69+
errno = EINTR;
70+
break;
71+
72+
default:
73+
errno = zmq::wsa_error_to_errno (wsaError);
74+
break;
7775
}
78-
}
76+
}
7977

8078
return rc;
8179
}

0 commit comments

Comments
 (0)