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

Pavlin Radoslavov pavlin@icir.org
Tue, 21 Jun 2005 18:11:09 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-06-21 18:11:09 UTC

XORP CVS repository


Modified files:
	rip           constants.hh port.cc 

Log message:
	Introduce a new constant RIP_MAX_COST (equal to 0xffff) and use it
	instead of assigning "~0U" to the uint16_t cost.
	
	This fixes a compilation error with gcc-2.95.4 on FreeBSD-4.10,
	because gcc-2.95.4 didn't like the implicit downcasting of ~0U
	to uint16_t.
	
	Bug found by:   Atanu, Bruce M. Simpson

Revision  Changes                               Path
1.16      +7 -1;  commitid: 11bfd42b8565d7ea6;  xorp/rip/constants.hh
1.42      +3 -3;  commitid: 11bfd42b8565d7ea6;  xorp/rip/port.cc