indent, etc.

This commit is contained in:
Christian Grothoff 2016-01-20 16:21:32 +01:00
parent 1f2dee5ae8
commit a64b605377

View File

@ -194,7 +194,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh,
}; };
if (GNUNET_OK != if (GNUNET_OK !=
MAJ_parse_json (json_array_get (json, MAJ_parse_json (json_array_get (json,
session), session),
spec)) spec))
{ {
@ -218,7 +218,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh,
struct TALER_CoinSpendPrivateKeyP coin_privs[num_coins]; struct TALER_CoinSpendPrivateKeyP coin_privs[num_coins];
struct TALER_DenominationSignature sigs[num_coins]; struct TALER_DenominationSignature sigs[num_coins];
struct TALER_DenominationPublicKey pubs[num_coins]; struct TALER_DenominationPublicKey pubs[num_coins];
off_coin = 0; off_coin = 0;
for (session=0;session<json_array_size (json); session++) 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 != if (GNUNET_OK !=
MAJ_parse_json (json_array_get (json, MAJ_parse_json (json_array_get (json,
session), session),
spec)) spec))
{ {
@ -246,13 +246,13 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh,
MAJ_parse_free (spec); MAJ_parse_free (spec);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
/* decode all coins */ /* decode all coins */
for (i=0;i<json_array_size (jsona);i++) for (i=0;i<json_array_size (jsona);i++)
{ {
if (GNUNET_OK != if (GNUNET_OK !=
parse_refresh_link_coin (rlh, parse_refresh_link_coin (rlh,
json_array_get (jsona, json_array_get (jsona,
i), i),
&trans_pub, &trans_pub,
&secret_enc, &secret_enc,
@ -274,7 +274,8 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh,
} }
off_coin += json_array_size (jsona); off_coin += json_array_size (jsona);
MAJ_parse_free (spec); MAJ_parse_free (spec);
} } /* end of for (session) */
if (off_coin == num_coins) if (off_coin == num_coins)
{ {
rlh->link_cb (rlh->link_cb_cls, rlh->link_cb (rlh->link_cb_cls,