aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools
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 /src/exchange-tools
parent391895d883ddb67deb0e16ee0b3beb90c21d650b (diff)
Refactor for GNUNET_memcmp and _is_zero
Diffstat (limited to 'src/exchange-tools')
-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 dcbc83d07..f2b48a534 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)) )
{