aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_performance.c
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/ats/ats_api_performance.c
parenta097690795f4f814de7cdbc97ef95fb899eeacd3 (diff)
downloadgnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.tar.gz
gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.zip
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/ats/ats_api_performance.c')
-rw-r--r--src/ats/ats_api_performance.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c
index 12dec776e..0954c02d5 100644
--- a/src/ats/ats_api_performance.c
+++ b/src/ats/ats_api_performance.c
@@ -383,9 +383,8 @@ handle_reservation_result (void *cls,
383 383
384 amount = ntohl (rr->amount); 384 amount = ntohl (rr->amount);
385 rc = ph->reservation_head; 385 rc = ph->reservation_head;
386 if (0 != memcmp (&rr->peer, 386 if (0 != GNUNET_memcmp (&rr->peer,
387 &rc->peer, 387 &rc->peer))
388 sizeof(struct GNUNET_PeerIdentity)))
389 { 388 {
390 GNUNET_break(0); 389 GNUNET_break(0);
391 reconnect (ph); 390 reconnect (ph);
@@ -498,7 +497,7 @@ handle_address_list (void *cls,
498 return; /* was canceled */ 497 return; /* was canceled */
499 498
500 memset (&allzeros, '\0', sizeof (allzeros)); 499 memset (&allzeros, '\0', sizeof (allzeros));
501 if ( (0 == memcmp (&allzeros, &pi->peer, sizeof(allzeros))) && 500 if ( (0 == GNUNET_is_zero (&pi->peer)) &&
502 (0 == plugin_name_length) && 501 (0 == plugin_name_length) &&
503 (0 == plugin_address_length) ) 502 (0 == plugin_address_length) )
504 { 503 {