This commit is contained in:
Jeff Hill
2001-03-07 16:16:43 +00:00
parent 719c36eb5b
commit 128cedaa06
3 changed files with 15 additions and 14 deletions
+4 -4
View File
@@ -10,15 +10,15 @@
* Author: Jeff Hill
*/
inline inetAddrID::inetAddrID (const struct sockaddr_in &addrIn) :
inline inetAddrID::inetAddrID ( const struct sockaddr_in &addrIn ) :
addr (addrIn)
{
}
inline bool inetAddrID::operator == (const inetAddrID &rhs) const
inline bool inetAddrID::operator == ( const inetAddrID &rhs ) const
{
if (this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr) {
if (this->addr.sin_port == rhs.addr.sin_port) {
if ( this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr ) {
if ( this->addr.sin_port == rhs.addr.sin_port ) {
return true;
}
}
+8 -7
View File
@@ -1,4 +1,5 @@
/* * $Id$
/*
* $Id$
*
* L O S A L A M O S
* Los Alamos National Laboratory
@@ -17,7 +18,7 @@
/*
* getToken()
*/
static char *getToken (const char **ppString, char *pBuf, unsigned bufSIze)
static char *getToken ( const char **ppString, char *pBuf, unsigned bufSIze )
{
const char *pToken;
unsigned i;
@@ -27,8 +28,8 @@ static char *getToken (const char **ppString, char *pBuf, unsigned bufSIze)
pToken++;
}
for (i=0u; i<bufSIze; i++) {
if ( isspace (pToken[i]) || pToken[i]=='\0') {
for ( i=0u; i<bufSIze; i++ ) {
if ( isspace (pToken[i]) || pToken[i]=='\0' ) {
pBuf[i] = '\0';
break;
}
@@ -170,12 +171,12 @@ epicsShareFunc void epicsShareAPI configureChannelAccessAddressList
* initializing the search b-cast list
* from the interfaces found.
*/
yes = TRUE;
yes = true;
pstr = envGetConfigParam ( &EPICS_CA_AUTO_ADDR_LIST,
sizeof (yesno), yesno );
if (pstr) {
if ( pstr ) {
if ( strstr ( pstr, "no" ) || strstr ( pstr, "NO" ) ) {
yes = FALSE;
yes = false;
}
}
+3 -3
View File
@@ -19,12 +19,12 @@
#include "msgForMultiplyDefinedPV_IL.h"
tsFreeList < class msgForMultiplyDefinedPV, 16 > msgForMultiplyDefinedPV::freeList;
epicsMutex msgForMultiplyDefinedPV::freeListMutex;
msgForMultiplyDefinedPV::msgForMultiplyDefinedPV (
cac &cacRefIn, const char *pChannelName, const char *pAcc,
cac &cacRefIn, const char *pChannelName, const char *pAcc,
const osiSockAddr &rej ) :
ipAddrToAsciiAsynchronous ( rej ),
cacRef ( cacRefIn )
ipAddrToAsciiAsynchronous ( rej ), cacRef ( cacRefIn )
{
strncpy ( this->acc, pAcc, sizeof ( this->acc ) );
this->acc[ sizeof ( this->acc ) - 1 ] = '\0';