[svn] commit: r2577 - /trunk/src/bin/auth/asio_link.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 22 06:12:54 UTC 2010
Author: jinmei
Date: Thu Jul 22 06:12:53 2010
New Revision: 2577
Log:
added redundant top-level consts in declarations to help broken sunstudio behavior.
hopefully trivial enough, so skipping review.
Modified:
trunk/src/bin/auth/asio_link.h
Modified: trunk/src/bin/auth/asio_link.h
==============================================================================
--- trunk/src/bin/auth/asio_link.h (original)
+++ trunk/src/bin/auth/asio_link.h Thu Jul 22 06:12:53 2010
@@ -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 @@
/// \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 @@
/// \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);
//@}
More information about the bind10-changes
mailing list