Richard Levitte - VMS Whacker wrote:
> 
> 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.  On most systems, size_t is the same as "unsigned int", which
> in pedantic mode (gcc -pedantic, or DEC C by default) will get you a
> warning.
> 
> So, the question is, shall we go for X/Open standards?  I think we
> should.  Question is how many compilers will break because of this.

gcc on FreeBSD with -pedantic, for one. I don't mind having a special
type just for getsockopt that gets done differently on different
platforms... but then, I'm like that!

> Another solution would be to cast &size to (void *) <hawk, spit>...

Gak! Never!

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]

Reply via email to