From aebfad6837a4a5e6dae7913c118d9dc2a97cd936 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sat, 2 Jul 2016 17:02:36 +0100 Subject: [PATCH] msg/AsyncMessenger: add const to function Signed-off-by: Michal Jarzabek --- src/msg/async/AsyncMessenger.cc | 2 +- src/msg/async/AsyncMessenger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/async/AsyncMessenger.cc b/src/msg/async/AsyncMessenger.cc index a7270cd52c712..7104ddb0f09b2 100644 --- a/src/msg/async/AsyncMessenger.cc +++ b/src/msg/async/AsyncMessenger.cc @@ -620,7 +620,7 @@ void AsyncMessenger::mark_down(const entity_addr_t& addr) lock.Unlock(); } -int AsyncMessenger::get_proto_version(int peer_type, bool connect) +int AsyncMessenger::get_proto_version(int peer_type, bool connect) const { int my_type = my_inst.name.type(); diff --git a/src/msg/async/AsyncMessenger.h b/src/msg/async/AsyncMessenger.h index 47898f49d91d4..ee3e0285e83b6 100644 --- a/src/msg/async/AsyncMessenger.h +++ b/src/msg/async/AsyncMessenger.h @@ -388,7 +388,7 @@ class AsyncMessenger : public SimplePolicyMessenger { * a peer protocol (if it matches our own), the protocol version for the * peer (if we're connecting), or our protocol version (if we're accepting). */ - int get_proto_version(int peer_type, bool connect); + int get_proto_version(int peer_type, bool connect) const; /** * Fill in the address and peer type for the local connection, which