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

Pavlin Radoslavov pavlin@icir.org
Tue, 25 Oct 2005 17:19:47 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-10-25 17:19:47 UTC

XORP CVS repository


Modified files:
	libxorp       selector.cc 

Log message:
	Bug fix in SelectorList::Node::is_empty()
	
	OLD:
	return (_mask[SEL_RD_IDX] == _mask[SEL_WR_IDX] == _mask[SEL_EX_IDX] == 0);
	
	This is wrong, because "0 == 1 == 2 == 0" also returns true.
	
	NEW:
	return ((_mask[SEL_RD_IDX] == 0) && (_mask[SEL_WR_IDX] == 0) &&
	        (_mask[SEL_EX_IDX] == 0));
	
	Bug found by:   Mark Doll <doll AT tm.uka.de>

Revision  Changes                              Path
1.31      +3 -2;  commitid: d0a2435e68a17ea6;  xorp/libxorp/selector.cc