diff --git a/replay.c b/replay.c index 04d1feb..2d96320 100644 --- a/replay.c +++ b/replay.c @@ -162,27 +162,28 @@ cb_result (void *arg, } +struct cls +{ + size_t i; + struct transcript *tr; +}; + + +static void +resend (void *x) +{ + struct cls c = *(struct cls *) x; + struct msg m = c.tr->msgs[c.i]; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "REPLAY sending msg no. %ld, length %ld\n", c.i, m.buf_len); + BRANDT_got_message (c.tr->auction, m.sender, m.buf, m.buf_len); +} + + static uint16_t cb_start (void *auction_closure) { struct transcript *tr = (struct transcript *) auction_closure; - struct cls - { - size_t i; - struct transcript *tr; - }; - - void - resend (void *x) - { - struct cls c = *(struct cls *) x; - struct msg m = c.tr->msgs[c.i]; - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "REPLAY sending msg no. %ld, length %ld\n", c.i, m.buf_len); - BRANDT_got_message (c.tr->auction, m.sender, m.buf, m.buf_len); - } - - GNUNET_log (GNUNET_ERROR_TYPE_INFO, "REPLAY start replay auction\n"); for (size_t i = 0; i < 4 * tr->n; i++) {