X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=blobdiff_plain;f=source%2Fhost.cpp;h=afa61b71e775a4eaa5ab49c8c87fc799ce5f71b0;hp=54f8b201ca0721683d08ffc905a2469dfec86305;hb=cb4b88367edde2829e40015f0bc02d653db2a6a8;hpb=d21b97e4f7f62ccdaf347012d6355a76f974f87e diff --git a/source/host.cpp b/source/host.cpp index 54f8b20..afa61b7 100644 --- a/source/host.cpp +++ b/source/host.cpp @@ -38,15 +38,15 @@ void Host::set_name(const string &n) if(local) { - unsigned dot = name.find('.'); + string::size_type dot = name.find('.'); short_name = name.substr(0, dot); } else { - unsigned dot = name.size(); + string::size_type dot = name.size(); for(unsigned i=0; (dot>0 && dot!=string::npos); ++i) { - unsigned prev = name.rfind('.', dot-1); + string::size_type prev = name.rfind('.', dot-1); if(prev+151) break; dot = prev;