X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbio%2Fb_sock.c;h=b9f10f3438546a761f55b8fc6324ff8850f1b13c;hp=328394efe42614d41e20af26e19a0e405268a155;hb=a1e464f94abb0ccfda284a96c358a5b32c7e72ac;hpb=c74b3a6037b329dbd9dfbaf1a103e2cc707ecdbc diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index 328394efe4..b9f10f3438 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -199,8 +199,12 @@ int BIO_sock_error(int sock) int size; size=sizeof(int); - - i=getsockopt(sock,SOL_SOCKET,SO_ERROR,&j,&size); + /* Note: under Windows the third parameter is of type (char *) + * whereas under other systems it is (void *) if you don't have + * a cast it will choke the compiler: if you do have a cast then + * you can either go for (char *) or (void *). + */ + i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(void *)&j,&size); if (i < 0) return(1); else