-some cosmetics

This commit is contained in:
Christian Grothoff 2015-08-09 19:00:48 +02:00
parent 1914bf7753
commit 6453b72ef9
2 changed files with 7 additions and 5 deletions

View File

@ -1932,6 +1932,10 @@ run (void *cls,
.details.deposit.transaction_id = 42421 }, .details.deposit.transaction_id = 42421 },
/* Melt the rest of the coin's value (EUR:4.00 = 3x EUR:1.03 + 7x EUR:0.13) */ /* Melt the rest of the coin's value (EUR:4.00 = 3x EUR:1.03 + 7x EUR:0.13) */
#if TEST_REFRESH
{ .oc = OC_REFRESH_MELT, { .oc = OC_REFRESH_MELT,
.label = "refresh-melt-1", .label = "refresh-melt-1",
.expected_response_code = MHD_HTTP_OK, .expected_response_code = MHD_HTTP_OK,
@ -1944,7 +1948,6 @@ run (void *cls,
.expected_response_code = MHD_HTTP_OK, .expected_response_code = MHD_HTTP_OK,
.details.refresh_reveal.melt_ref = "refresh-melt-1" }, .details.refresh_reveal.melt_ref = "refresh-melt-1" },
#if TEST_REFRESH_LINK
/* Test that /refresh/link works */ /* Test that /refresh/link works */
{ .oc = OC_REFRESH_LINK, { .oc = OC_REFRESH_LINK,

View File

@ -209,7 +209,7 @@ get_coin_public_info (struct MHD_Connection *connection,
/** /**
* Verify that the signature shows that this coin is to be melted into * Verify that the signature shows that this coin is to be melted into
* the given @a session_pub melting session, and that this is a valid * the given @a session_hash melting session, and that this is a valid
* coin (we know the denomination key and the signature on it is * coin (we know the denomination key and the signature on it is
* valid). Essentially, this does all of the per-coin checks that can * valid). Essentially, this does all of the per-coin checks that can
* be done before the transaction starts. * be done before the transaction starts.
@ -361,7 +361,6 @@ handle_refresh_melt_json (struct MHD_Connection *connection,
unsigned int num_newcoins, unsigned int num_newcoins,
const json_t *coin_evs, const json_t *coin_evs,
const json_t *link_encs) const json_t *link_encs)
{ {
int res; int res;
unsigned int i; unsigned int i;
@ -407,8 +406,8 @@ handle_refresh_melt_json (struct MHD_Connection *connection,
} }
coin_count = json_array_size (melt_coins); coin_count = json_array_size (melt_coins);
coin_melt_details = GNUNET_malloc (coin_count * coin_melt_details = GNUNET_new_array (coin_count,
sizeof (struct TMH_DB_MeltDetails)); struct TMH_DB_MeltDetails);
for (i=0;i<coin_count;i++) for (i=0;i<coin_count;i++)
{ {
/* decode JSON data on coin to melt */ /* decode JSON data on coin to melt */