fixed gnu warnings
This commit is contained in:
@@ -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 ),
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user