From f67017bf198b8d5cce6cbe7823a20e052e12b3d6 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) --- Ivy/IvyWatcher.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Ivy') 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 ); -- cgit v1.1