summaryrefslogtreecommitdiff
path: root/src/set
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/set
parenta097690795f4f814de7cdbc97ef95fb899eeacd3 (diff)
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set_intersection.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/set/gnunet-service-set_intersection.c b/src/set/gnunet-service-set_intersection.c
index d681666fe..e1bbcc152 100644
--- a/src/set/gnunet-service-set_intersection.c
+++ b/src/set/gnunet-service-set_intersection.c
@@ -843,9 +843,8 @@ process_bf (struct Operation *op)
if ( (0 == op->state->my_element_count) || /* fully disjoint */
( (op->state->my_element_count == op->remote_element_count) &&
- (0 == memcmp (&op->state->my_xor,
- &op->state->other_xor,
- sizeof (struct GNUNET_HashCode))) ) )
+ (0 == GNUNET_memcmp (&op->state->my_xor,
+ &op->state->other_xor)) ) )
{
/* we are done */
op->state->phase = PHASE_MUST_SEND_DONE;
@@ -1059,9 +1058,8 @@ handle_intersection_p2p_done (void *cls,
op);
}
if ( (op->state->my_element_count != ntohl (idm->final_element_count)) ||
- (0 != memcmp (&op->state->my_xor,
- &idm->element_xor_hash,
- sizeof (struct GNUNET_HashCode))) )
+ (0 != GNUNET_memcmp (&op->state->my_xor,
+ &idm->element_xor_hash)) )
{
/* Other peer thinks we are done, but we disagree on the result! */
GNUNET_break_op (0);