aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 13:26:43 +0000
committerng0 <ng0@n0.is>2019-04-08 14:58:21 +0000
commitd55c2acbd5fd399b73401e755b2812ef407971e8 (patch)
tree5d654f858f7cdfe4116415808ffe35093fb639b6 /src
parent79dcb7276028aa0a3a7fdd2e02b99f8aaf69059c (diff)
refactor util/test_crypto.c for GNUNET_memcmp
Diffstat (limited to 'src')
-rw-r--r--src/util/test_crypto.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
index 4713b3a35..bba9275af 100644
--- a/src/util/test_crypto.c
+++ b/src/util/test_crypto.c
@@ -60,16 +60,14 @@ test_high_level ()
&coin_pub,
&secret2);
GNUNET_assert (0 ==
- memcmp (&secret,
- &secret2,
- sizeof (secret)));
+ GNUNET_memcmp (&secret,
+ &secret2));
TALER_link_recover_transfer_secret (&trans_pub,
&coin_priv,
&secret2);
GNUNET_assert (0 ==
- memcmp (&secret,
- &secret2,
- sizeof (secret)));
+ GNUNET_memcmp (&secret,
+ &secret2));
TALER_planchet_setup_refresh (&secret,
0,
&fc1);
@@ -77,9 +75,8 @@ test_high_level ()
1,
&fc2);
GNUNET_assert (0 !=
- memcmp (&fc1,
- &fc2,
- sizeof (struct TALER_PlanchetSecretsP)));
+ GNUNET_memcmp (&fc1,
+ &fc2));
return 0;
}