aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_monitor.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/namestore/namestore_api_monitor.c
parenta097690795f4f814de7cdbc97ef95fb899eeacd3 (diff)
downloadgnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.tar.gz
gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.zip
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r--src/namestore/namestore_api_monitor.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index 67715f634..99e3864c9 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -142,12 +142,9 @@ check_result (void *cls,
142 const char *rd_ser_tmp; 142 const char *rd_ser_tmp;
143 143
144 (void) cls; 144 (void) cls;
145 if ( (0 != memcmp (&lrm->private_key, 145 if ( (0 != GNUNET_memcmp (&lrm->private_key,
146 &zm->zone, 146 &zm->zone)) &&
147 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) && 147 (0 != GNUNET_is_zero (&zm->zone)) )
148 (0 != memcmp (&zero,
149 &zm->zone,
150 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
151 { 148 {
152 GNUNET_break (0); 149 GNUNET_break (0);
153 return GNUNET_SYSERR; 150 return GNUNET_SYSERR;