fixing silly bug

This commit is contained in:
Christian Grothoff 2015-08-09 18:31:26 +02:00
parent 462d315247
commit d0fb011850
2 changed files with 5 additions and 4 deletions

View File

@ -740,7 +740,7 @@ deserialize_melt_data (const char *buf,
return NULL; return NULL;
memcpy (&mdp, memcpy (&mdp,
buf, buf,
buf_size); sizeof (struct MeltDataP));
md = GNUNET_new (struct MeltData); md = GNUNET_new (struct MeltData);
md->melt_session_hash = mdp.melt_session_hash; md->melt_session_hash = mdp.melt_session_hash;
for (i=0;i<TALER_CNC_KAPPA;i++) for (i=0;i<TALER_CNC_KAPPA;i++)

View File

@ -1906,7 +1906,6 @@ run (void *cls,
.details.deposit.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }", .details.deposit.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }",
.details.deposit.transaction_id = 1 }, .details.deposit.transaction_id = 1 },
#if TEST_REFRESH
/* ***************** /refresh testing ******************** */ /* ***************** /refresh testing ******************** */
/* Fill reserve with EUR:5.01, as withdraw fee is 1 ct */ /* Fill reserve with EUR:5.01, as withdraw fee is 1 ct */
@ -1945,6 +1944,8 @@ 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,
.label = "refresh-link-1", .label = "refresh-link-1",
@ -2046,7 +2047,7 @@ main (int argc,
fprintf (stderr, "."); fprintf (stderr, ".");
sleep (1); sleep (1);
} }
while (0 != system ("wget -q -t 1 http://localhost:8081/agpl -o /dev/null")); while (0 != system ("wget -q -t 1 http://localhost:8081/agpl -o /dev/null -O /dev/null"));
fprintf (stderr, "\n"); fprintf (stderr, "\n");
result = GNUNET_SYSERR; result = GNUNET_SYSERR;
GNUNET_SCHEDULER_run (&run, NULL); GNUNET_SCHEDULER_run (&run, NULL);