diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-21 16:27:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-21 16:27:58 +0100 |
commit | bba0ec72fa9638685f77c7f8d9d371ab776a709f (patch) | |
tree | f05b2385b4027d3a41bac4e8137f069079edd99e /src/exchange-lib/test_exchange_api.c | |
parent | 6ba7747ac332d71465ff94b04f44f06c32477145 (diff) |
finish new withdraw command implementation
Diffstat (limited to 'src/exchange-lib/test_exchange_api.c')
-rw-r--r-- | src/exchange-lib/test_exchange_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index a276d5cab..272318ed2 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -1497,13 +1497,12 @@ static const struct TALER_EXCHANGE_DenomPublicKey * find_pk (const struct TALER_EXCHANGE_Keys *keys, const struct TALER_Amount *amount) { - unsigned int i; struct GNUNET_TIME_Absolute now; struct TALER_EXCHANGE_DenomPublicKey *pk; char *str; now = GNUNET_TIME_absolute_get (); - for (i=0;i<keys->num_denom_keys;i++) + for (unsigned int i=0;i<keys->num_denom_keys;i++) { pk = &keys->denom_keys[i]; if ( (0 == TALER_amount_cmp (amount, @@ -1514,7 +1513,7 @@ find_pk (const struct TALER_EXCHANGE_Keys *keys, } /* do 2nd pass to check if expiration times are to blame for failure */ str = TALER_amount_to_string (amount); - for (i=0;i<keys->num_denom_keys;i++) + for (unsigned int i=0;i<keys->num_denom_keys;i++) { pk = &keys->denom_keys[i]; if ( (0 == TALER_amount_cmp (amount, |