summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-06 14:37:07 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-06 14:37:07 +0200
commitc57caa206c761424b73e900978edff0a1b8fca50 (patch)
tree66641306c9a1d196dfe9f82c863bada50fb86187 /src/fs
parentc0d08bbdeed4523cf89bf55b64ce2c16476c3e26 (diff)
introduce GNUNET_memcmp() and GNUNET_is_zero()
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-service-fs.c2
-rw-r--r--src/fs/gnunet-service-fs_cp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index b9ccf7c55..691242ce3 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -1224,7 +1224,7 @@ static void
peer_init_handler (void *cls,
const struct GNUNET_PeerIdentity *my_identity)
{
- if (0 != GNUNET_CRYPTO_cmp_peer_identity (&GSF_my_id,
+ if (0 != GNUNET_memcmp (&GSF_my_id,
my_identity))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index 6486732a6..a3a521221 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -588,7 +588,7 @@ GSF_peer_connect_handler (void *cls,
struct GSF_ConnectedPeer *cp;
if (0 ==
- GNUNET_CRYPTO_cmp_peer_identity (&GSF_my_id,
+ GNUNET_memcmp (&GSF_my_id,
peer))
return NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,