summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 15:45:52 +0000
committerng0 <ng0@n0.is>2019-04-08 15:45:52 +0000
commitd77bf8ab53c03d2d39e90493b2f1c65816f8d6fb (patch)
treec28300065a233e849f3cb22d0eafea84c953851c
parent391895d883ddb67deb0e16ee0b3beb90c21d650b (diff)
downloadexchange-d77bf8ab53c03d2d39e90493b2f1c65816f8d6fb.tar.gz
exchange-d77bf8ab53c03d2d39e90493b2f1c65816f8d6fb.tar.bz2
exchange-d77bf8ab53c03d2d39e90493b2f1c65816f8d6fb.zip
Refactor for GNUNET_memcmp and _is_zero
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c
index dcbc83d0..f2b48a53 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -1308,9 +1308,8 @@ run (void *cls,
return;
}
if (0 !=
- memcmp (&master_public_key,
- &master_public_key_from_cfg,
- sizeof (struct TALER_MasterPublicKeyP)))
+ GNUNET_memcmp (&master_public_key,
+ &master_public_key_from_cfg))
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
"exchange",
@@ -1363,9 +1362,7 @@ run (void *cls,
global_ret = 1;
return;
}
- if ( (0 != memcmp (&zero,
- &revoke_dkh,
- sizeof (zero))) &&
+ if ( (0 != GNUNET_is_zero memcmp (&revoke_dkh)) &&
(GNUNET_OK !=
revoke_denomination (&revoke_dkh)) )
{