[sllug-members]: differ in signedness

Corey Edwards tensai at zmonkey.org
Mon Jul 31 16:02:59 MDT 2006


On Mon, 2006-07-31 at 15:42 -0600, Adam Barrett wrote:
> So I run the standard ./configure and then make and it throws that...
> what can I do about it? 

First off, it's a warning so it won't stop you from compiling. It's
possible that it won't make a difference in the application, depending
on the value of the variable. But it *could* cause an error, and that's
what the compiler is warning you about.

The proper solution is to get the signs correct, kinda like getting the
planets to light up only not so easy. Is this your own code or something
you downloaded? If the latter, what? You could always report it as a bug
to the developers.

The third parameter to getsockname is an "int *" or a "socklen_t
*" (which has to be an "int *"). If it's an "unsigned int *", that would
generate the error. Simply make it signed and you'll be good to go, that
is unless doing so introduces some other bug in the code.

Corey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://sllug.org/pipermail/sllug-members/attachments/20060731/089b116c/attachment.pgp


More information about the sllug-members mailing list