nonblocking warning fixes

This commit is contained in:
toddouska 2012-09-27 10:31:38 -07:00
parent 51a8901f6a
commit d5d24df32a
3 changed files with 3 additions and 3 deletions

View File

@ -502,7 +502,7 @@ static INLINE void tcp_set_nonblocking(SOCKET_T* sockfd)
int ret = ioctlsocket(*sockfd, FIONBIO, &blocking);
#else
int flags = fcntl(*sockfd, F_GETFL, 0);
int ret = fcntl(*sockfd, F_SETFL, flags | O_NONBLOCK);
fcntl(*sockfd, F_SETFL, flags | O_NONBLOCK);
#endif
#endif
(void)sockfd;

View File

@ -40,7 +40,7 @@
#endif
#if defined(NON_BLOCKING) || defined(CYASSL_CALLBACKS)
void NonBlockingSSL_Connect(CYASSL* ssl)
static void NonBlockingSSL_Connect(CYASSL* ssl)
{
#ifndef CYASSL_CALLBACKS
int ret = CyaSSL_connect(ssl);

View File

@ -36,7 +36,7 @@
#endif
#if defined(NON_BLOCKING) || defined(CYASSL_CALLBACKS)
void NonBlockingSSL_Accept(SSL* ssl)
static void NonBlockingSSL_Accept(SSL* ssl)
{
#ifndef CYASSL_CALLBACKS
int ret = SSL_accept(ssl);