From 14b87193494fbf5b7a318dc032a9eb3f497116ba Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:04:00 +0000 Subject: Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 12) --- Bus/Ivy/IvyWatcher.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bus/Ivy/IvyWatcher.cxx b/Bus/Ivy/IvyWatcher.cxx index 424c8ac..4faca90 100644 --- a/Bus/Ivy/IvyWatcher.cxx +++ b/Bus/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 ); -- cgit v1.1