Work with -pedantic!
[openssl.git] / crypto / bio / b_sock.c
index d3c1345d0b5eb28a71d4bc00080d3cd8e120ccc5..ff1a0a7dd0e5e3c3603054323cfc28f2053f7268 100644 (file)
@@ -196,11 +196,11 @@ int BIO_get_port(const char *str, unsigned short *port_ptr)
 int BIO_sock_error(int sock)
        {
        int j,i;
-       unsigned int size;
+       int size;
                 
        size=sizeof(int);
 
-       i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(char *)&j,&size);
+       i=getsockopt(sock,SOL_SOCKET,SO_ERROR,&j,&size);
        if (i < 0)
                return(1);
        else
@@ -593,7 +593,7 @@ int BIO_accept(int sock, char **addr)
        static struct sockaddr_in from;
        unsigned long l;
        unsigned short port;
-       unsigned int len;
+       int len;
        char *p;
 
        memset((char *)&from,0,sizeof(from));