diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-18 19:16:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-18 19:16:44 +0100 |
commit | 8dbc19758b87c41ada780c20edac0c500ab2daa1 (patch) | |
tree | 88f24a9f5d304a1b3a5c9ab6509395bb38af3cfb /src/lib/exchange_api_refresh_link.c | |
parent | d53eca894011f31b698a13cf41d31e2d19c7e427 (diff) | |
download | exchange-8dbc19758b87c41ada780c20edac0c500ab2daa1.tar.xz |
fix compiler warnings
Diffstat (limited to 'src/lib/exchange_api_refresh_link.c')
-rw-r--r-- | src/lib/exchange_api_refresh_link.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/exchange_api_refresh_link.c b/src/lib/exchange_api_refresh_link.c index 1a2fc719c..6a747d1b6 100644 --- a/src/lib/exchange_api_refresh_link.c +++ b/src/lib/exchange_api_refresh_link.c @@ -203,7 +203,8 @@ parse_refresh_link_ok (struct TALER_EXCHANGE_RefreshLinkHandle *rlh, loop once for 'session=0' in most cases. num_coins tracks the size of the 1d array we return, - whilst 'i' and 'session' track the 2d array. */for (session = 0; session<json_array_size (json); session++) + whilst 'i' and 'session' track the 2d array. */// + for (session = 0; session<json_array_size (json); session++) { json_t *jsona; struct GNUNET_JSON_Specification spec[] = { @@ -236,9 +237,9 @@ parse_refresh_link_ok (struct TALER_EXCHANGE_RefreshLinkHandle *rlh, { unsigned int off_coin; /* index into 1d array */ unsigned int i; - struct TALER_CoinSpendPrivateKeyP coin_privs[num_coins]; - struct TALER_DenominationSignature sigs[num_coins]; - struct TALER_DenominationPublicKey pubs[num_coins]; + struct TALER_CoinSpendPrivateKeyP coin_privs[GNUNET_NZL (num_coins)]; + struct TALER_DenominationSignature sigs[GNUNET_NZL (num_coins)]; + struct TALER_DenominationPublicKey pubs[GNUNET_NZL (num_coins)]; memset (sigs, 0, sizeof (sigs)); memset (pubs, 0, sizeof (pubs)); |