diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-06 14:37:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-06 14:37:07 +0200 |
commit | c57caa206c761424b73e900978edff0a1b8fca50 (patch) | |
tree | 66641306c9a1d196dfe9f82c863bada50fb86187 /src/cadet | |
parent | c0d08bbdeed4523cf89bf55b64ce2c16476c3e26 (diff) | |
download | gnunet-c57caa206c761424b73e900978edff0a1b8fca50.tar.gz gnunet-c57caa206c761424b73e900978edff0a1b8fca50.zip |
introduce GNUNET_memcmp() and GNUNET_is_zero()
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnels.c b/src/cadet/gnunet-service-cadet_tunnels.c index ad4ed6e96..57a6d1adf 100644 --- a/src/cadet/gnunet-service-cadet_tunnels.c +++ b/src/cadet/gnunet-service-cadet_tunnels.c | |||
@@ -467,10 +467,10 @@ struct CadetTunnel | |||
467 | static int | 467 | static int |
468 | alice_or_betty (const struct GNUNET_PeerIdentity *other) | 468 | alice_or_betty (const struct GNUNET_PeerIdentity *other) |
469 | { | 469 | { |
470 | if (0 > GNUNET_CRYPTO_cmp_peer_identity (&my_full_id, | 470 | if (0 > GNUNET_memcmp (&my_full_id, |
471 | other)) | 471 | other)) |
472 | return GNUNET_YES; | 472 | return GNUNET_YES; |
473 | else if (0 < GNUNET_CRYPTO_cmp_peer_identity (&my_full_id, | 473 | else if (0 < GNUNET_memcmp (&my_full_id, |
474 | other)) | 474 | other)) |
475 | return GNUNET_NO; | 475 | return GNUNET_NO; |
476 | else | 476 | else |
@@ -2077,7 +2077,7 @@ get_next_free_ctn (struct CadetTunnel *t) | |||
2077 | int cmp; | 2077 | int cmp; |
2078 | uint32_t highbit; | 2078 | uint32_t highbit; |
2079 | 2079 | ||
2080 | cmp = GNUNET_CRYPTO_cmp_peer_identity (&my_full_id, | 2080 | cmp = GNUNET_memcmp (&my_full_id, |
2081 | GCP_get_id (GCT_get_destination (t))); | 2081 | GCP_get_id (GCT_get_destination (t))); |
2082 | if (0 < cmp) | 2082 | if (0 < cmp) |
2083 | highbit = HIGH_BIT; | 2083 | highbit = HIGH_BIT; |