]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Compilation fix for comparison of std::stream pos value.
authorMarcin Siodelski <marcin@isc.org>
Tue, 26 Aug 2014 05:48:48 +0000 (07:48 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 26 Aug 2014 05:48:48 +0000 (07:48 +0200)
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.

src/lib/dhcpsrv/configuration.cc

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