diff options
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/gnunet-service-consensus.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c index 04e71afd9..912d3de6a 100644 --- a/src/consensus/gnunet-service-consensus.c +++ b/src/consensus/gnunet-service-consensus.c | |||
@@ -2406,7 +2406,7 @@ get_peer_idx (const struct GNUNET_PeerIdentity *peer, const struct ConsensusSess | |||
2406 | { | 2406 | { |
2407 | int i; | 2407 | int i; |
2408 | for (i = 0; i < session->num_peers; i++) | 2408 | for (i = 0; i < session->num_peers; i++) |
2409 | if (0 == memcmp (peer, &session->peers[i], sizeof (struct GNUNET_PeerIdentity))) | 2409 | if (0 == GNUNET_memcmp (peer, &session->peers[i])) |
2410 | return i; | 2410 | return i; |
2411 | return -1; | 2411 | return -1; |
2412 | } | 2412 | } |
@@ -2476,9 +2476,8 @@ initialize_session_peer_list (struct ConsensusSession *session, | |||
2476 | local_peer_in_list = GNUNET_NO; | 2476 | local_peer_in_list = GNUNET_NO; |
2477 | for (unsigned int i = 0; i < session->num_peers; i++) | 2477 | for (unsigned int i = 0; i < session->num_peers; i++) |
2478 | { | 2478 | { |
2479 | if (0 == memcmp (&msg_peers[i], | 2479 | if (0 == GNUNET_memcmp (&msg_peers[i], |
2480 | &my_peer, | 2480 | &my_peer)) |
2481 | sizeof (struct GNUNET_PeerIdentity))) | ||
2482 | { | 2481 | { |
2483 | local_peer_in_list = GNUNET_YES; | 2482 | local_peer_in_list = GNUNET_YES; |
2484 | break; | 2483 | break; |