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/revocation | |
parent | a097690795f4f814de7cdbc97ef95fb899eeacd3 (diff) | |
download | gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.tar.gz gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.zip |
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/revocation')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 5 | ||||
-rw-r--r-- | src/revocation/gnunet-service-revocation.c | 10 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 7596cab2d..4b8fa15bb 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c | |||
@@ -365,9 +365,8 @@ ego_callback (void *cls, | |||
365 | rd, | 365 | rd, |
366 | sizeof (struct RevocationData))) ) | 366 | sizeof (struct RevocationData))) ) |
367 | { | 367 | { |
368 | if (0 != memcmp (&rd->key, | 368 | if (0 != GNUNET_memcmp (&rd->key, |
369 | &key, | 369 | &key)) |
370 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey))) | ||
371 | { | 370 | { |
372 | fprintf (stderr, | 371 | fprintf (stderr, |
373 | _("Error: revocation certificate in `%s' is not for `%s'\n"), | 372 | _("Error: revocation certificate in `%s' is not for `%s'\n"), |
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index fd646b4b7..e4ea1f2ff 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c | |||
@@ -545,9 +545,8 @@ handle_core_connect (void *cls, | |||
545 | struct GNUNET_HashCode my_hash; | 545 | struct GNUNET_HashCode my_hash; |
546 | struct GNUNET_HashCode peer_hash; | 546 | struct GNUNET_HashCode peer_hash; |
547 | 547 | ||
548 | if (0 == memcmp (peer, | 548 | if (0 == GNUNET_memcmp (peer, |
549 | &my_identity, | 549 | &my_identity)) |
550 | sizeof (my_identity))) | ||
551 | { | 550 | { |
552 | return NULL; | 551 | return NULL; |
553 | } | 552 | } |
@@ -608,9 +607,8 @@ handle_core_disconnect (void *cls, | |||
608 | { | 607 | { |
609 | struct PeerEntry *peer_entry = internal_cls; | 608 | struct PeerEntry *peer_entry = internal_cls; |
610 | 609 | ||
611 | if (0 == memcmp (peer, | 610 | if (0 == GNUNET_memcmp (peer, |
612 | &my_identity, | 611 | &my_identity)) |
613 | sizeof (my_identity))) | ||
614 | return; | 612 | return; |
615 | GNUNET_assert (NULL != peer_entry); | 613 | GNUNET_assert (NULL != peer_entry); |
616 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 614 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |