]> git.tdb.fi Git - netvis.git/blobdiff - source/host.cpp
Fix 64-bit compile errors
[netvis.git] / source / host.cpp
index 54f8b201ca0721683d08ffc905a2469dfec86305..afa61b71e775a4eaa5ab49c8c87fc799ce5f71b0 100644 (file)
@@ -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+15<name.size() && i>1)
                                break;
                        dot = prev;