We can't say in advance what the argument to BIO_socket_ioctl() should be, so
[openssl.git] / crypto / bio / b_sock.c
index 86f38172fba682f8b46b8b477bf0358f0a03add9..601a14f37c5b5654f3481d09bd8fbaaa8b17c695 100644 (file)
@@ -492,7 +492,7 @@ void BIO_sock_cleanup(void)
 
 #if !defined(OPENSSL_SYS_VMS) || __VMS_VER >= 70000000
 
-int BIO_socket_ioctl(int fd, long type, unsigned long *arg)
+int BIO_socket_ioctl(int fd, long type, void *arg)
        {
        int i;
 
@@ -742,7 +742,7 @@ int BIO_set_tcp_ndelay(int s, int on)
 int BIO_socket_nbio(int s, int mode)
        {
        int ret= -1;
-       unsigned long l;
+       int l;
 
        l=mode;
 #ifdef FIONBIO