Fix lots of warnings.
[openssl.git] / crypto / bio / b_sock.c
index d14a7797fdd3206513669c4b222462ad2f8b0ac4..d3c1345d0b5eb28a71d4bc00080d3cd8e120ccc5 100644 (file)
@@ -195,7 +195,8 @@ int BIO_get_port(const char *str, unsigned short *port_ptr)
 
 int BIO_sock_error(int sock)
        {
-       int j,i,size;
+       int j,i;
+       unsigned int size;
                 
        size=sizeof(int);
 
@@ -592,7 +593,7 @@ int BIO_accept(int sock, char **addr)
        static struct sockaddr_in from;
        unsigned long l;
        unsigned short port;
-       int len;
+       unsigned int len;
        char *p;
 
        memset((char *)&from,0,sizeof(from));