summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:00 +0000
committerfcolin2007-02-01 13:04:00 +0000
commitf67017bf198b8d5cce6cbe7823a20e052e12b3d6 (patch)
tree64840cf5c771680c2fc95aa81b73ac70893b494d /Ivy
parentc7b04986097c2c4fa6e0d9ad00bdaf5dff9cdeec (diff)
downloadivy-cplusplus-f67017bf198b8d5cce6cbe7823a20e052e12b3d6.zip
ivy-cplusplus-f67017bf198b8d5cce6cbe7823a20e052e12b3d6.tar.gz
ivy-cplusplus-f67017bf198b8d5cce6cbe7823a20e052e12b3d6.tar.bz2
ivy-cplusplus-f67017bf198b8d5cce6cbe7823a20e052e12b3d6.tar.xz
Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 12)
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/IvyWatcher.cxx6
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 );