From 11a77e8b887691c4f6fad30b4512ba79bd668ba9 Mon Sep 17 00:00:00 2001 From: Denis Zlobin Date: Tue, 20 Feb 2024 16:01:46 +0300 Subject: [PATCH] sbus: Fix codegen template for async client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Double semicolon is generated, thus test src/tests/double_semicolon_test fails for async client source code. For example, we can generate code for IFP async client. To do this, add new async interface to src/responder/ifp/ifp_iface/ifp_iface.xml file: Then make check tests. Test fails with an error: ``` Double semicolon found: ../src/responder/ifp/ifp_iface/sbus_ifp_client_async.c:132: *_value = talloc_steal(mem_ctx, state->out->arg0);; ``` Reviewed-by: Pavel Březina --- src/sbus/codegen/templates/client_async.c.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbus/codegen/templates/client_async.c.tpl b/src/sbus/codegen/templates/client_async.c.tpl index e16ce42c7f9..ae154842702 100644 --- a/src/sbus/codegen/templates/client_async.c.tpl +++ b/src/sbus/codegen/templates/client_async.c.tpl @@ -405,7 +405,7 @@ TEVENT_REQ_RETURN_ON_ERROR(req); - *_value = talloc_steal(mem_ctx, state->out->arg0);state->out->arg0; + *_value = talloc_steal(mem_ctx, state->out->arg0)state->out->arg0; return EOK; }