diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-20 16:21:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-20 16:21:32 +0100 |
commit | a64b6053770339f3ae2de4f779bad42c7109cb0d (patch) | |
tree | 44c89041fb9d9466aa454c6c4d8e9c960b878c88 /src | |
parent | 1f2dee5ae8c902e10c8e2a00b57147b2169275a3 (diff) |
indent, etc.
Diffstat (limited to 'src')
-rw-r--r-- | src/mint-lib/mint_api_refresh_link.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mint-lib/mint_api_refresh_link.c b/src/mint-lib/mint_api_refresh_link.c index d4060bd1c..c8793259c 100644 --- a/src/mint-lib/mint_api_refresh_link.c +++ b/src/mint-lib/mint_api_refresh_link.c @@ -194,7 +194,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, }; if (GNUNET_OK != - MAJ_parse_json (json_array_get (json, + MAJ_parse_json (json_array_get (json, session), spec)) { @@ -218,7 +218,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, struct TALER_CoinSpendPrivateKeyP coin_privs[num_coins]; struct TALER_DenominationSignature sigs[num_coins]; struct TALER_DenominationPublicKey pubs[num_coins]; - + off_coin = 0; for (session=0;session<json_array_size (json); session++) { @@ -233,7 +233,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, }; if (GNUNET_OK != - MAJ_parse_json (json_array_get (json, + MAJ_parse_json (json_array_get (json, session), spec)) { @@ -246,13 +246,13 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, MAJ_parse_free (spec); return GNUNET_SYSERR; } - + /* decode all coins */ for (i=0;i<json_array_size (jsona);i++) { if (GNUNET_OK != parse_refresh_link_coin (rlh, - json_array_get (jsona, + json_array_get (jsona, i), &trans_pub, &secret_enc, @@ -274,7 +274,8 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, } off_coin += json_array_size (jsona); MAJ_parse_free (spec); - } + } /* end of for (session) */ + if (off_coin == num_coins) { rlh->link_cb (rlh->link_cb_cls, |