spsc_q: fix call to spsc_q_alloc() in benchmark

Fixes: 4d67a6e513 ("spsc_q: make compile on older compilers")

Signed-off-by: Robert Schmidt <robert.schmidt@openairinterface.org>
This commit is contained in:
Robert Schmidt
2026-04-30 19:54:11 +02:00
parent d420f8c123
commit d8962fa270

View File

@@ -40,9 +40,9 @@ static void *consumer(void *arg)
static void run_test(int range, int q_size) static void run_test(int range, int q_size)
{ {
q_args_t args = { q_args_t args = {
.q = spsc_q_alloc(q_size, sizeof(int)),
.range = range, .range = range,
}; };
spsc_q_alloc(&args.q, q_size, sizeof(int));
pthread_t p, c; pthread_t p, c;
int ret; int ret;