From 0071ba54dee96e7cdda9ac39b574ac1ae500d7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 15 Jan 2024 13:21:30 +0100 Subject: [PATCH] don't use gcc experimental embedded function feature --- replay.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) 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++) {