use iter.valid() and not iter.eol() (cosmetic)

This commit is contained in:
Jeff Hill
2000-06-27 23:07:01 +00:00
parent 45c116e750
commit 69162db301
3 changed files with 11 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ cacLocalChannelIO * cacServiceList::createChannelIO (const char *pName, cacChann
this->lock ();
tsDLIterBD <cacServiceIO> iter ( this->services.first () );
while ( iter != iter.eol () ) {
while ( iter.valid () ) {
pChanIO = iter->createChannelIO ( chan, pName );
if ( pChanIO ) {
break;

View File

@@ -94,7 +94,7 @@ nciu::~nciu ()
* remove any IO blocks still attached to this channel
*/
tsDLIterBD <baseNMIU> iter = this->eventq.first ();
while ( iter != iter.eol () ) {
while ( iter.valid () ) {
tsDLIterBD <baseNMIU> next = iter.itemAfter ();
iter->destroy ();
iter = next;
@@ -540,6 +540,12 @@ void nciu::hostName ( char *pBuf, unsigned bufLength ) const
this->piiu->hostName ( pBuf, bufLength );
}
// deprecated - please do not use
const char * nciu::pHostName () const
{
return this->piiu->pHostName ();
}
bool nciu::ca_v42_ok () const
{
return this->piiu->ca_v42_ok ();
@@ -628,7 +634,7 @@ void nciu::connect ( tcpiiu &iiu, unsigned nativeType,
// resubscribe for monitors from this channel
tsDLIterBD<baseNMIU> iter = this->eventq.first ();
while ( iter != iter.eol () ) {
while ( iter.valid () ) {
iter->subscriptionMsg ();
iter++;
}
@@ -654,7 +660,7 @@ void nciu::disconnect ()
* look for events that have an event cancel in progress
*/
tsDLIterBD <baseNMIU> iter = this->eventq.first ();
while ( iter != iter.eol () ) {
while ( iter.valid () ) {
tsDLIterBD <baseNMIU> next = iter.itemAfter ();
iter->disconnect ( hostNameBuf );
iter = next;

View File

@@ -212,7 +212,7 @@ void searchTimer::expire ()
* the end of the list
*/
firstChan = chan = this->iiu.chidList.first ();
while ( chan != chan.eol () ) {
while ( chan.valid () ) {
this->minRetry = min (this->minRetry, chan->retry);