BIND 10 trac1960, updated. 85c7fb2e4627e84c2d17c59432509a221034e6ea [1960] Compare streampos values instead streampos to int.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 25 19:56:42 UTC 2012


The branch, trac1960 has been updated
       via  85c7fb2e4627e84c2d17c59432509a221034e6ea (commit)
      from  d98f7060780fc89f05c1610d3e88403969dfc819 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 85c7fb2e4627e84c2d17c59432509a221034e6ea
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Sep 25 21:55:54 2012 +0200

    [1960] Compare streampos values instead streampos to int.

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/perfdhcp/test_control.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/test_control.cc b/tests/tools/perfdhcp/test_control.cc
index 39c4d18..b7c3cd6 100644
--- a/tests/tools/perfdhcp/test_control.cc
+++ b/tests/tools/perfdhcp/test_control.cc
@@ -885,8 +885,8 @@ TestControl::readPacketTemplate(const std::string& file_name) {
         isc_throw(BadValue, "unable to open template file " << file_name);
     }
     // Read template file contents.
-    std::ifstream::pos_type temp_size = temp_file.tellg();
-    if (temp_size == 0) {
+    std::streampos temp_size = temp_file.tellg();
+    if (temp_size == std::streampos(0)) {
         temp_file.close();
         isc_throw(OutOfRange, "the template file " << file_name << " is empty");
     }



More information about the bind10-changes mailing list