[svn] commit: r2580 - /trunk/src/bin/auth/asio_link.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jul 22 07:10:41 UTC 2010


Author: jinmei
Date: Thu Jul 22 07:10:40 2010
New Revision: 2580

Log:
constify.
(trivial)

Modified:
    trunk/src/bin/auth/asio_link.cc

Modified: trunk/src/bin/auth/asio_link.cc
==============================================================================
--- trunk/src/bin/auth/asio_link.cc (original)
+++ trunk/src/bin/auth/asio_link.cc Thu Jul 22 07:10:40 2010
@@ -487,7 +487,7 @@
         // representation such as "-1" by lexical_cast<uint16_t>, so
         // we convert it into a signed integer of a larger size and perform
         // range check ourselves.
-        int32_t portnum32 = boost::lexical_cast<int32_t>(&port);
+        const int32_t portnum32 = boost::lexical_cast<int32_t>(&port);
         if (portnum32 < 0 || portnum32 > 65535) {
             isc_throw(IOError, "Invalid port number '" << &port);
         }




More information about the bind10-changes mailing list