Bodo Moeller wrote:
>
> Richard Levitte - VMS Whacker <[EMAIL PROTECTED]>:
>
> > In crypto/bio/b_sock.c, there's a call to getsockopt() that gets &size
> > as last argument. size is of type int, but according to X/Open, the
> > socket routines like getsockopt() shall get sizes with the type
> > size_t. [...]
> > Another solution would be to cast &size to (void *) <hawk, spit>...
> > Uhmmm, actually haven't tested that yet, I'll come back on it...
>
> That's not a solution, since size_t could be unsigned long and could
> have an entirely different representation than int. As likely all
> systems that declare getsockopt() to take an int * don't have problems
> with mixing those types, nothings speaks against doing things right
> and use a size_t variable to store the size.
Except you get a warning when you compile. Which, in my case, at least,
means it stops (I use -Werror, and I don't intend to stop).
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]