Browse Source

[master] Compilation fix for comparison of std::stream pos value.

This is trivial fix so as I am committing it on my own discretion. Also,
this fix had already been reviewed and applied on master branch but
apparently disappeared after the recent git migration.
Marcin Siodelski 10 years ago
parent
commit
539826f03a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcpsrv/configuration.cc

+ 1 - 1
src/lib/dhcpsrv/configuration.cc

@@ -48,7 +48,7 @@ Configuration::getConfigSummary(const uint32_t selection) const {
         s << "DDNS: " << (ddns_enabled ? "enabled" : "disabled") << "; ";
         s << "DDNS: " << (ddns_enabled ? "enabled" : "disabled") << "; ";
     }
     }
 
 
-    if (s.tellp() == 0) {
+    if (s.tellp() == static_cast<std::streampos>(0)) {
         s << "no config details available";
         s << "no config details available";
     }
     }