diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-11-27 23:42:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-11-29 20:23:08 +0100 |
commit | 499247a4805583dc67b9d6fef850ae86b4be1e32 (patch) | |
tree | abf9bf358bc00149a78d8128101bfc43540af8f2 /src/exchange-lib/test_exchange_api.c | |
parent | 9041840d6e1caa5a0a4f8222b312b547ccd2ab1b (diff) | |
download | exchange-499247a4805583dc67b9d6fef850ae86b4be1e32.tar.gz exchange-499247a4805583dc67b9d6fef850ae86b4be1e32.tar.bz2 exchange-499247a4805583dc67b9d6fef850ae86b4be1e32.zip |
fixing #5178
Diffstat (limited to 'src/exchange-lib/test_exchange_api.c')
-rw-r--r-- | src/exchange-lib/test_exchange_api.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index 7c0dfa982..5de9318ff 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -1199,7 +1199,7 @@ static void melt_cb (void *cls, unsigned int http_status, enum TALER_ErrorCode ec, - uint16_t noreveal_index, + uint32_t noreveal_index, const struct TALER_ExchangePublicKeyP *exchange_pub, const json_t *full_response) { @@ -1312,8 +1312,6 @@ link_cb (void *cls, struct InterpreterState *is = cls; struct Command *cmd = &is->commands[is->ip]; const struct Command *ref; - unsigned int i; - unsigned int j; unsigned int found; cmd->details.refresh_link.rlh = NULL; @@ -1341,16 +1339,16 @@ link_cb (void *cls, return; } /* check that the coins match */ - for (i=0;i<num_coins;i++) - for (j=i+1;j<num_coins;j++) + for (unsigned int i=0;i<num_coins;i++) + for (unsigned int j=i+1;j<num_coins;j++) if (0 == memcmp (&coin_privs[i], &coin_privs[j], sizeof (struct TALER_CoinSpendPrivateKeyP))) GNUNET_break (0); /* Note: coins might be legitimately permutated in here... */ found = 0; - for (i=0;i<num_coins;i++) - for (j=0;j<num_coins;j++) + for (unsigned int i=0;i<num_coins;i++) + for (unsigned int j=0;j<num_coins;j++) { const struct FreshCoin *fc; |