C warning that I can't seem to track down

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Tue Aug 8 14:39:12 UTC 2006


On Tue, Aug 08, 2006 at 09:30:07AM -0400, bob wrote:
> In newer versions of the GCC compiler the block of C code:
> 
> int length;
> 
> ...
> 
> if(getsockname(s, (struct sockaddr *)&sin, &length))
> 
> gives a warning below
> 
> socketUtils.c:259: warning: pointer targets in passing argument 3 of 
> 'getsockname' differ in signedness
> 
> 
> I tracked it down to a define called "socklen_t".    Damned if I can find 
> where that is defined.
> 
> Any help would be appreciated.   Thanks.

Probably, 'socket_t' is defined as unsigned, just like 'size_t'.

-- 
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list