diff options
author | Julius Bünger <buenger@mytum.de> | 2019-04-26 05:56:54 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2019-04-26 05:56:54 +0200 |
commit | f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e (patch) | |
tree | 94055d2c049a65b5ab6c61fd3c5867fe49f6f429 /src/scalarproduct | |
parent | a097690795f4f814de7cdbc97ef95fb899eeacd3 (diff) | |
download | gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.tar.gz gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.zip |
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/scalarproduct')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | 5 | ||||
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_alice.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c index 368bbe605..4b1a09e50 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | |||
@@ -776,9 +776,8 @@ cb_intersection_request_alice (void *cls, | |||
776 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 776 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
777 | "Received intersection request from %s!\n", | 777 | "Received intersection request from %s!\n", |
778 | GNUNET_i2s (other_peer)); | 778 | GNUNET_i2s (other_peer)); |
779 | if (0 != memcmp (other_peer, | 779 | if (0 != GNUNET_memcmp (other_peer, |
780 | &s->peer, | 780 | &s->peer)) |
781 | sizeof (struct GNUNET_PeerIdentity))) | ||
782 | { | 781 | { |
783 | GNUNET_break_op (0); | 782 | GNUNET_break_op (0); |
784 | return; | 783 | return; |
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index 38aef6409..393a1951b 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c | |||
@@ -1012,9 +1012,8 @@ cb_intersection_request_alice (void *cls, | |||
1012 | { | 1012 | { |
1013 | struct AliceServiceSession *s = cls; | 1013 | struct AliceServiceSession *s = cls; |
1014 | 1014 | ||
1015 | if (0 != memcmp (other_peer, | 1015 | if (0 != GNUNET_memcmp (other_peer, |
1016 | &s->peer, | 1016 | &s->peer)) |
1017 | sizeof (struct GNUNET_PeerIdentity))) | ||
1018 | { | 1017 | { |
1019 | GNUNET_break_op (0); | 1018 | GNUNET_break_op (0); |
1020 | return; | 1019 | return; |