diff options
Diffstat (limited to 'Ivy/IvyWatcher.cxx')
-rw-r--r-- | Ivy/IvyWatcher.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ivy/IvyWatcher.cxx b/Ivy/IvyWatcher.cxx index 424c8ac..4faca90 100644 --- a/Ivy/IvyWatcher.cxx +++ b/Ivy/IvyWatcher.cxx @@ -28,7 +28,7 @@ IvyWatcher::~IvyWatcher() void IvyWatcher::OnReceive(int nErrorCode)
{
- int err;
+ size_t err;
int version;
char buffer[256];
ivy::string remotehost;
@@ -81,7 +81,7 @@ void IvyWatcher::start(const char *domainlist) domain = bus->GetDomain( domainlist );
// first find our UDP port
- int sep_index = domain.rfind( ':' );
+ size_t sep_index = domain.rfind( ':' );
if ( sep_index != -1 )
{
port = atoi ( domain.substr( sep_index +1 ).c_str() );
@@ -103,7 +103,7 @@ void IvyWatcher::start(const char *domainlist) while ( !domain.empty() )
{
// find addr up to separator
- int index = domain.find_first_of( ", \t" );
+ size_t index = domain.find_first_of( ", \t" );
addr = domain.substr( 0, index );
domain.erase( 0, addr.length() +1 );
TRACE("Ivy Broadcasting on %s:%d\n", addr.c_str(), port );
|