fixed gnu warnings

This commit is contained in:
Jeff Hill
2002-11-01 18:13:51 +00:00
parent 250a5418c1
commit e772ce948c
8 changed files with 23 additions and 19 deletions

View File

@@ -137,7 +137,7 @@ cac::cac ( cacNotify & notifyIn, bool enablePreemptiveCallbackIn ) :
programBeginTime ( epicsTime::getCurrent() ),
connTMO ( CA_CONN_VERIFY_PERIOD ),
cbMutex ( ! enablePreemptiveCallbackIn ),
globalServiceList ( globalServiceListCAC ),
globalServiceList ( globalServiceListCAC.getReference () ),
timerQueue ( epicsTimerQueueActive::allocate ( false,
lowestPriorityLevelAbove(epicsThreadGetPrioritySelf()) ) ),
pUserName ( 0 ),

View File

@@ -74,7 +74,7 @@ void cacChannel::hostName ( char *pBuf, unsigned bufLength ) const
{
if ( bufLength ) {
epicsSingleton < localHostName >::reference
ref ( localHostNameAtLoadTime );
ref ( localHostNameAtLoadTime.getReference () );
ref->copy ( pBuf, bufLength );
}
}
@@ -84,7 +84,7 @@ void cacChannel::hostName ( char *pBuf, unsigned bufLength ) const
const char * cacChannel::pHostName () const
{
epicsSingleton < localHostName >::reference
ref ( localHostNameAtLoadTime );
ref ( localHostNameAtLoadTime.getReference () );
return ref->pointer ();
}

View File

@@ -894,7 +894,7 @@ void tcpiiu::hostNameSetRequest ( epicsGuard < cacMutex > & )
}
epicsSingleton < localHostName >::reference
ref ( localHostNameAtLoadTime );
ref ( localHostNameAtLoadTime.getReference () );
const char * pName = ref->pointer ();
unsigned size = strlen ( pName ) + 1u;
unsigned postSize = CA_MESSAGE_ALIGN ( size );