break; fallthroughs in win32 code

This commit is contained in:
Sara Golemon 2005-04-02 05:43:17 +00:00
parent d3f854c21b
commit ae9ad1ef6f

View File

@ -542,11 +542,11 @@ static int libssh2_blocking_read(LIBSSH2_SESSION *session, unsigned char *buf, s
if (ret < 0) { if (ret < 0) {
#ifdef WIN32 #ifdef WIN32
switch (WSAGetLastError()) { switch (WSAGetLastError()) {
case WSAEWOULDBLOCK: errno = EAGAIN; case WSAEWOULDBLOCK: errno = EAGAIN; break;
case WSAENOTCONN: case WSAENOTCONN:
case WSAENOTSOCK: case WSAENOTSOCK:
case WSAECONNABORTED: errno = EBADF; case WSAECONNABORTED: errno = EBADF; break;
case WSAEINTR: errno = EINTR; case WSAEINTR: errno = EINTR; break;
} }
#endif #endif
if (errno == EAGAIN) { if (errno == EAGAIN) {