diff options
-rw-r--r-- | replay.c | 35 |
1 files changed, 18 insertions, 17 deletions
@@ -162,27 +162,28 @@ cb_result (void *arg, } -static uint16_t -cb_start (void *auction_closure) +struct cls { - struct transcript *tr = (struct transcript *) auction_closure; - struct cls - { - size_t i; - struct transcript *tr; - }; + 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); - } + +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; GNUNET_log (GNUNET_ERROR_TYPE_INFO, "REPLAY start replay auction\n"); for (size_t i = 0; i < 4 * tr->n; i++) { |