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

Pavlin Radoslavov pavlin@icir.org
Tue, 21 Jun 2005 11:52:08 -0700


> On Tue, Jun 21, 2005 at 12:03:59AM +0000, Pavlin Radoslavov wrote:
> > Modified files:
> > 	libxorp       ipv4.cc 
> > 	pim           pim_bsr.cc 
> > 	rip           port.cc test_outputs.cc 
> > 
> > Log message:
> > 	Compilation fix: replace ~0 with ~0U when initializing values.
> > 	
> > 	Problem found on MacOS X with gcc-4.0 compiler.
> 
> Breaks on FreeBSD 4.10-STABLE with gcc 2.95.4.
> Specifically the rip/port.cc change.
> 
> Noticed when trying to build xorp_win after IFC picked up this change
> for build coverage on non-Windows platforms.

Yep, last night Atanu also pointed that to me, but at that time we
didn't want to fix it by explicit casting.
Now the problem is fixed in CVS by introducing a new constant
RIP_MAX_COST.

Pavlin