Browse Source

added redundant top-level consts in declarations to help broken sunstudio behavior.
hopefully trivial enough, so skipping review.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2577 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 14 years ago
parent
commit
a82c729cef
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/bin/auth/asio_link.h

+ 4 - 3
src/bin/auth/asio_link.h

@@ -20,6 +20,7 @@
 // IMPORTANT NOTE: only very few ASIO headers files can be included in
 // this file.  In particular, asio.hpp should never be included here.
 // See the description of the namespace below.
+#include <unistd.h>
 #include <asio/ip/address.hpp>
 
 #include <functional>
@@ -215,9 +216,9 @@ public:
     /// \param address The (IP) address of the endpoint.
     /// \param port The transport port number of the endpoint
     /// \return A pointer to a newly created \c IOEndpoint object.
-    static const IOEndpoint* create(int protocol,
+    static const IOEndpoint* create(const int protocol,
                                     const IOAddress& address,
-                                    unsigned short port);
+                                    const unsigned short port);
 };
 
 /// \brief The \c IOSocket class is an abstract base class to represent
@@ -349,7 +350,7 @@ public:
     /// \param io_socket The socket over which the data is given.
     /// \param remote_endpoint The other endpoint of the socket, that is,
     /// the sender of the message.
-    IOMessage(const void* data, size_t data_size, IOSocket& io_socket,
+    IOMessage(const void* data, const size_t data_size, IOSocket& io_socket,
               const IOEndpoint& remote_endpoint);
     //@}