Skip to content

Commit

Permalink
msg/AsyncMessenger: add const to function
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
  • Loading branch information
stiopaa1 committed Jul 2, 2016
1 parent 7eef57c commit 9c6793e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/msg/async/AsyncMessenger.cc
Expand Up @@ -820,7 +820,7 @@ Connection *AsyncMessenger::create_anon_connection() {
return new AsyncConnection(cct, this, &dispatch_queue, w);
}

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();

Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/AsyncMessenger.h
Expand Up @@ -463,7 +463,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
Expand Down

0 comments on commit 9c6793e

Please sign in to comment.