diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-07 22:44:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-18 15:15:10 +0000 |
commit | fe568db83d8e0196acb6dabf60fff39543783e12 (patch) | |
tree | 6c51db4ead592b597a71a086fbf3d3a6b11f5683 | |
parent | cryptonote_protocol: sanity check chain hashes from peer (diff) | |
download | monero-fe568db83d8e0196acb6dabf60fff39543783e12.tar.xz |
p2p: use size_t for arbitrary counters instead of uint8_t
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 55be7c2cb..b6ef530d1 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1856,8 +1856,8 @@ namespace nodetool template<class t_payload_net_handler> bool node_server<t_payload_net_handler>::has_too_many_connections(const epee::net_utils::network_address &address) { - const uint8_t max_connections = 1; - uint8_t count = 0; + const size_t max_connections = 1; + size_t count = 0; m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt) { |