From f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Fri, 26 Apr 2019 05:56:54 +0200 Subject: memcmp() -> GNUNET_memcmp(), first take --- src/set/gnunet-service-set_intersection.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/set') 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); -- cgit v1.2.3