summaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-26 05:56:54 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-26 05:56:54 +0200
commitf5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e (patch)
tree94055d2c049a65b5ab6c61fd3c5867fe49f6f429 /src/consensus
parenta097690795f4f814de7cdbc97ef95fb899eeacd3 (diff)
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/gnunet-service-consensus.c7
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
{
int i;
for (i = 0; i < session->num_peers; i++)
- if (0 == memcmp (peer, &session->peers[i], sizeof (struct GNUNET_PeerIdentity)))
+ if (0 == GNUNET_memcmp (peer, &session->peers[i]))
return i;
return -1;
}
@@ -2476,9 +2476,8 @@ initialize_session_peer_list (struct ConsensusSession *session,
local_peer_in_list = GNUNET_NO;
for (unsigned int i = 0; i < session->num_peers; i++)
{
- if (0 == memcmp (&msg_peers[i],
- &my_peer,
- sizeof (struct GNUNET_PeerIdentity)))
+ if (0 == GNUNET_memcmp (&msg_peers[i],
+ &my_peer))
{
local_peer_in_list = GNUNET_YES;
break;