summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--raul/Socket.hpp2
-rw-r--r--test/ringbuffer_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/raul/Socket.hpp b/raul/Socket.hpp
index 307aab7..df7645a 100644
--- a/raul/Socket.hpp
+++ b/raul/Socket.hpp
@@ -82,7 +82,7 @@ public:
std::shared_ptr<Socket> accept();
/** Return the file descriptor for the socket. */
- int fd() { return _sock; }
+ int fd() const { return _sock; }
const std::string& uri() const { return _uri; }
diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp
index 58c0eb1..37a2740 100644
--- a/test/ringbuffer_test.cpp
+++ b/test/ringbuffer_test.cpp
@@ -50,7 +50,7 @@ gen_msg(int* msg, int start)
}
void
-check_msg(int* msg1, int* msg2)
+check_msg(const int* msg1, const int* msg2)
{
for (unsigned i = 0u; i < MSG_SIZE; ++i) {
assert(msg1[i] == msg2[i]);