[Xorp-cvs] XORP cvs commit: xorp/libcomm

Pavlin Radoslavov pavlin@icir.org
Mon, 5 Sep 2005 20:28:23 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-09-05 20:28:23 UTC

XORP CVS repository


Modified files:
	libcomm       comm_sock.c comm_user.c 

Log message:
	Use an intermediate (void *) cast when casting (sockaddr *) to
	(sockaddr_in *) or (sockaddr_in6 *), because OpenBSD/sparc64
	doesn't like the original casting and generates a compilation
	error. This fixes Bugzilla entry #184.
	Comment #1 in Bugzilla entry #184 describes the casting problem:
	
	sockaddr_storage, sockaddr_in and sockaddr_in6 can be cast between
	each other without problems in any pairing.
	
	sockaddr_storage, sockaddr_in and sockaddr_in6 can all be cast to
	sockaddr, but not back again.
	
	Bugzilla URL:   http://www.xorp.org/bugzilla/show_bug.cgi?id=184

Revision  Changes                              Path
1.27      +5 -5;  commitid: 68b9431ca9587ea6;  xorp/libcomm/comm_sock.c
1.19      +3 -3;  commitid: 68b9431ca9587ea6;  xorp/libcomm/comm_user.c