diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-12 11:42:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-12 11:42:25 +0100 |
commit | ea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30 (patch) | |
tree | 04722fd0673f9bba13741d8e59426e4ee15b2216 /src/util/test_helper_cs.c | |
parent | 8a3e88fbf1b7f35baf20dbac747ed025e3ad9f26 (diff) | |
download | exchange-ea4be7ba6fcbd8ba6860f3fc7234a51c474f4e30.tar.xz |
-swap argument/rval for nicer code
Diffstat (limited to 'src/util/test_helper_cs.c')
-rw-r--r-- | src/util/test_helper_cs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_helper_cs.c b/src/util/test_helper_cs.c index dd807b254..a0dbebd62 100644 --- a/src/util/test_helper_cs.c +++ b/src/util/test_helper_cs.c @@ -456,11 +456,11 @@ test_signing (struct TALER_CRYPTO_CsDenominationHelper *dh) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Requesting signature with key %s\n", GNUNET_h2s (&keys[i].h_cs.hash)); - ds = TALER_CRYPTO_helper_cs_sign (dh, + ec = TALER_CRYPTO_helper_cs_sign (dh, &keys[i].h_cs, &pd.blinded_planchet.details. cs_blinded_planchet, - &ec); + &ds); } switch (ec) { @@ -552,11 +552,11 @@ test_signing (struct TALER_CRYPTO_CsDenominationHelper *dh) &c_hash, &pd)); - ds = TALER_CRYPTO_helper_cs_sign (dh, + ec = TALER_CRYPTO_helper_cs_sign (dh, &rnd, &pd.blinded_planchet.details. cs_blinded_planchet, - &ec); + &ds); if (TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN != ec) { if (TALER_EC_NONE == ec) @@ -645,11 +645,11 @@ perf_signing (struct TALER_CRYPTO_CsDenominationHelper *dh, struct GNUNET_TIME_Absolute start = GNUNET_TIME_absolute_get (); struct GNUNET_TIME_Relative delay; - ds = TALER_CRYPTO_helper_cs_sign (dh, + ec = TALER_CRYPTO_helper_cs_sign (dh, &keys[i].h_cs, &pd.blinded_planchet.details. cs_blinded_planchet, - &ec); + &ds); if (TALER_EC_NONE != ec) break; delay = GNUNET_TIME_absolute_get_duration (start); |